summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/nginx
diff options
context:
space:
mode:
authorGaylord Charles <gaylord.charles@veo-labs.com>2019-09-25 11:20:06 +0200
committerKhem Raj <raj.khem@gmail.com>2019-11-17 12:34:21 -0800
commit35dddf62f59fb87a9a888f7e3ff7493f94375830 (patch)
treed1c8272e77725a6a6efcb1bb74443083340844b9 /meta-webserver/recipes-httpd/nginx
parentb4ae53538b0d87ee88f84a36a09af15e1f59989e (diff)
downloadmeta-openembedded-35dddf62f59fb87a9a888f7e3ff7493f94375830.tar.gz
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@veo-labs.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx')
-rw-r--r--meta-webserver/recipes-httpd/nginx/nginx.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index e202e8563..0d229ff40 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -93,9 +93,9 @@ do_install () {
93 >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf 93 >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
94 fi 94 fi
95 install -d ${D}${sysconfdir}/${BPN} 95 install -d ${D}${sysconfdir}/${BPN}
96 ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run 96 lnr ${D}${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
97 install -d ${D}${NGINX_WWWDIR} 97 install -d ${D}${NGINX_WWWDIR}
98 mv ${D}/usr/html ${D}${NGINX_WWWDIR}/ 98 mv ${D}${exec_prefix}/html ${D}${NGINX_WWWDIR}/
99 chown ${NGINX_USER}:www-data -R ${D}${NGINX_WWWDIR} 99 chown ${NGINX_USER}:www-data -R ${D}${NGINX_WWWDIR}
100 100
101 install -d ${D}${sysconfdir}/init.d 101 install -d ${D}${sysconfdir}/init.d