bind:moved into main repo for pisi 2.0
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user