diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2020-05-06 15:02:09 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-05-06 12:51:39 -0700 |
commit | 6e9f393605eed1e5f4e317536b1463b83b978bad (patch) | |
tree | 0ada6eefea26bd8ff4ffd86e29d6179835985e40 /meta-webserver | |
parent | d95011031dbd3933ed1abfdfbaa0b51f5c9cd82d (diff) | |
download | meta-openembedded-6e9f393605eed1e5f4e317536b1463b83b978bad.tar.gz |
nginx: remove /var/log/nginx when do_install
Remove directory /var/log/nginx when do_install because it is created by
volatiles file.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc index 2824c6652..de080a2b0 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx.inc +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc | |||
@@ -90,7 +90,7 @@ do_install () { | |||
90 | install -d ${D}${sysconfdir}/tmpfiles.d | 90 | install -d ${D}${sysconfdir}/tmpfiles.d |
91 | echo "d /run/${BPN} - - - -" \ | 91 | echo "d /run/${BPN} - - - -" \ |
92 | > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | 92 | > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf |
93 | echo "d /${localstatedir}/log/${BPN} 0755 root root -" \ | 93 | echo "d ${localstatedir}/log/${BPN} 0755 root root -" \ |
94 | >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | 94 | >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf |
95 | fi | 95 | fi |
96 | install -d ${D}${sysconfdir}/${BPN} | 96 | install -d ${D}${sysconfdir}/${BPN} |
@@ -139,6 +139,8 @@ do_install () { | |||
139 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 139 | -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
140 | ${D}${systemd_unitdir}/system/nginx.service | 140 | ${D}${systemd_unitdir}/system/nginx.service |
141 | fi | 141 | fi |
142 | |||
143 | rm -rf ${D}${localstatedir}/log/ | ||
142 | } | 144 | } |
143 | 145 | ||
144 | pkg_postinst_${PN} () { | 146 | pkg_postinst_${PN} () { |