Revert "bind: remove volatile file"

This reverts commit 000d0719ad.

Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
Joe MacDonald 2021-11-23 12:31:46 -05:00
parent 968b06c600
commit b65af82309
2 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,11 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://volatiles.04_bind"
do_install:append() {
install -d ${D}${sysconfdir}/default/volatiles
install -m 0644 ${WORKDIR}/volatiles.04_bind ${D}${sysconfdir}/default/volatiles/04_bind
sed -i '/^\s*\/usr\/sbin\/rndc-confgen/a\
[ -x /sbin/restorecon ] && /sbin/restorecon -F /etc/bind/rndc.key' ${D}${sysconfdir}/init.d/bind
}

View File

@ -0,0 +1,4 @@
# <type> <owner> <group> <mode> <path> <linksource>
d root root 0755 /var/run/named none
d root root 0755 /var/run/bind/run none
d root root 0755 /var/cache/bind none