diff options
Diffstat (limited to 'extra/bind/install')
-rw-r--r-- | extra/bind/install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/bind/install b/extra/bind/install index e3a1397cb..287d0e05b 100644 --- a/extra/bind/install +++ b/extra/bind/install @@ -1,13 +1,13 @@ post_install() { - getent group named >/dev/null || groupadd -g 40 named - getent passwd named >/dev/null || useradd -u 40 -c "BIND DNS Server" -g named -d /var/named -s /bin/false named + getent group named &>/dev/null || groupadd -g 40 named + getent passwd named &>/dev/null || useradd -u 40 -c "BIND DNS Server" -g named -d /var/named -s /bin/false named passwd -l named &>/dev/null touch var/log/named.log chown named:named var/log/named.log # create an rndc.key if it doesn't already exist - if [ ! -s etc/rndc.key ]; then + if [[ ! -s etc/rndc.key ]]; then usr/sbin/rndc-confgen -r /dev/urandom -b 256 | head -n 5 >>etc/rndc.key chown root:named etc/rndc.key chmod 640 etc/rndc.key |