bind:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-10 17:02:50 +03:00
parent 4425bb64fa
commit 968e1e2f16
25 changed files with 1806 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/python
import os
UID = "named"
GID = "named"
directories = ("/var/named", \
"/var/named/data", \
"/var/named/dynamic", \
"/var/named/pri", \
"/var/named/sec", \
"/var/named/slaves", \
"/var/named/named.ca", \
"/var/run/named")
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
if not os.path.exists("/etc/bind/rndc.key"):
os.system("/usr/sbin/rndc-confgen -r /dev/urandom -a -u named")
# Ownerships
for d in directories:
os.system("chown %s:%s %s" % (UID, GID, d))