summaryrefslogtreecommitdiff
path: root/testing/bind/install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-09-05 13:37:26 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-09-05 13:37:26 +0000
commitf651180e6b1ac9508ec0d1d9b94972de776020a9 (patch)
tree2c1f8d3bf28b5a52b186cfb6a67b6d092ddf21fc /testing/bind/install
parent6dee0a203a8290427ca77705bc1cae90381529b2 (diff)
Mon Sep 5 13:37:24 UTC 2011
Diffstat (limited to 'testing/bind/install')
-rw-r--r--testing/bind/install21
1 files changed, 0 insertions, 21 deletions
diff --git a/testing/bind/install b/testing/bind/install
deleted file mode 100644
index 287d0e05b..000000000
--- a/testing/bind/install
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- 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
- 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
- fi
-}
-
-pre_remove() {
- getent passwd named &>/dev/null && userdel named >/dev/null
- getent group named &>/dev/null && groupdel named >/dev/null
- return 0
-}