mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
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>
This commit is contained in:
@@ -90,7 +90,7 @@ do_install () {
|
|||||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||||
echo "d /run/${BPN} - - - -" \
|
echo "d /run/${BPN} - - - -" \
|
||||||
> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
||||||
echo "d /${localstatedir}/log/${BPN} 0755 root root -" \
|
echo "d ${localstatedir}/log/${BPN} 0755 root root -" \
|
||||||
>> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
>> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
||||||
fi
|
fi
|
||||||
install -d ${D}${sysconfdir}/${BPN}
|
install -d ${D}${sysconfdir}/${BPN}
|
||||||
@@ -139,6 +139,8 @@ do_install () {
|
|||||||
-e 's,@BASE_BINDIR@,${base_bindir},g' \
|
-e 's,@BASE_BINDIR@,${base_bindir},g' \
|
||||||
${D}${systemd_unitdir}/system/nginx.service
|
${D}${systemd_unitdir}/system/nginx.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf ${D}${localstatedir}/log/
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
|
|||||||
Reference in New Issue
Block a user