[oe] [meta-webserver][PATCH] nginx: fix install paths
Gaylord Charles
gaylord.charles at veo-labs.com
Wed Sep 25 09:20:06 UTC 2019
Hello,
This patch fixes Nginx install paths. I tried to build the native variant
for testing purpose and had errors.
Regards,
Gaylord Charles
>From b6dc845b645cc8667b2d89412c292c0801de9270 Mon Sep 17 00:00:00 2001
From: Gaylord CHARLES <gaylord.charles at veo-labs.com>
Date: Tue, 24 Sep 2019 18:56:45 +0200
Subject: [PATCH] nginx: fix install paths
- 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>
---
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 29e7efc14..1e9d2e1a4 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -92,9 +92,9 @@ do_install () {
>> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
fi
install -d ${D}${sysconfdir}/${BPN}
- ln -snf ${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
+ ln -snf ../../var/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
--
2.20.1
More information about the Openembedded-devel
mailing list