From 0efcce45d2acbe565dc0ddbbd5990be5079fc62d Mon Sep 17 00:00:00 2001 From: Sertonix Date: Mon, 8 Apr 2024 20:43:43 +0200 Subject: [PATCH] main/bind: use relative dirs in scripts In preperation for apk3's --force-no-chroot option --- main/bind/APKBUILD | 2 +- main/bind/bind.post-install | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/bind/APKBUILD b/main/bind/APKBUILD index 2fd06a2148f..8afde48a57c 100644 --- a/main/bind/APKBUILD +++ b/main/bind/APKBUILD @@ -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" diff --git a/main/bind/bind.post-install b/main/bind/bind.post-install index aa1b7a85e59..94c1424e798 100644 --- a/main/bind/bind.post-install +++ b/main/bind/bind.post-install @@ -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