main/bind: use relative dirs in scripts

In preperation for apk3's --force-no-chroot option
This commit is contained in:
Sertonix 2024-04-08 20:43:43 +02:00 committed by Mike Crute
parent 68ca743ce0
commit 0efcce45d2
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ _ver=${pkgver%_p*}
_p=${pkgver#*_p}
_major=${pkgver%%.*}
[ "$_p" != "$pkgver" ] && _ver="$_ver-P$_p"
pkgrel=0
pkgrel=1
pkgdesc="The ISC DNS server"
url="https://www.isc.org/"
arch="all"

View file

@ -1,7 +1,7 @@
#!/bin/sh
# Generate key required for reload to work -> creates /etc/bind/rndc.key
if ! [ -f /etc/bind/rndc.key ]; then
rndc-confgen -a
chown named:named /etc/bind/rndc.key
if ! [ -f etc/bind/rndc.key ]; then
rndc-confgen -a -c etc/bind/rndc.key
chown named:named etc/bind/rndc.key
fi