diff options
author | Gaylord Charles <gaylord.charles@veo-labs.com> | 2019-09-25 11:20:06 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-17 12:34:21 -0800 |
commit | 35dddf62f59fb87a9a888f7e3ff7493f94375830 (patch) | |
tree | d1c8272e77725a6a6efcb1bb74443083340844b9 /meta-webserver/recipes-httpd/nginx | |
parent | b4ae53538b0d87ee88f84a36a09af15e1f59989e (diff) | |
download | meta-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.inc | 4 |
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 |