summaryrefslogtreecommitdiff
path: root/extra/bind/install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
committerroot <root@rshg054.dnsready.net>2013-04-28 01:12:25 -0700
commitf38edbff3878008c8b2ae1ca8a496c349763017b (patch)
tree4f9ff6891842a0a6dcd9c0c8424ec8f16527e023 /extra/bind/install
parenta27a6af53095da314eca1d33911f72775dfc2bce (diff)
Sun Apr 28 01:11:42 PDT 2013
Diffstat (limited to 'extra/bind/install')
-rw-r--r--extra/bind/install21
1 files changed, 0 insertions, 21 deletions
diff --git a/extra/bind/install b/extra/bind/install
deleted file mode 100644
index 287d0e05b..000000000
--- a/extra/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
-}