[oe-commits] [meta-openembedded] 03/03: nginx: fix install paths

git at git.openembedded.org git at git.openembedded.org
Sat Nov 16 08:05:06 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 0a60f46cb0bb625feef09142b9ce8eb6ffb87b40
Author: Gaylord Charles <gaylord.charles at veo-labs.com>
AuthorDate: Wed Sep 25 11:20:06 2019 +0200

    nginx: fix install paths
    
    This patch fixes Nginx install paths. I tried to build the native variant
    for testing purpose and had errors.
    
    - Use path variable instead of /usr
    - Replace the absolute path symlink with a relative one
    
    Signed-off-by: Gaylord CHARLES <gaylord.charles at veo-labs.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index e202e85..0d229ff 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -93,9 +93,9 @@ do_install () {
             >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
     fi
     install -d ${D}${sysconfdir}/${BPN}
-    ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
+    lnr ${D}${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
     install -d ${D}${NGINX_WWWDIR}
-    mv ${D}/usr/html ${D}${NGINX_WWWDIR}/
+    mv ${D}${exec_prefix}/html ${D}${NGINX_WWWDIR}/
     chown ${NGINX_USER}:www-data -R ${D}${NGINX_WWWDIR}
 
     install -d ${D}${sysconfdir}/init.d

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list