works for openldap

This commit is contained in:
Ertuğrul Erata
2015-07-03 16:32:16 +03:00
parent cac083e613
commit 087fcd1c3e
58 changed files with 3236 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/python
import os
import pwd
import grp
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/bin/chown ldap:ldap /var/lib/openldap-data")
os.system("/bin/chown ldap:ldap /var/lib/openldap-slurp")
os.system("/bin/chown ldap:ldap /run/openldap")
os.system("/bin/chown root:ldap /etc/openldap/slapd.conf")
os.system("/bin/chown root:ldap /etc/openldap/slapd.conf.default")
os.system("/bin/chmod 0700 /var/lib/openldap-data")
os.system("/bin/chmod 0700 /var/lib/openldap-slurp")
os.system("/bin/chmod 0755 /run/openldap")
os.system("/bin/chmod 0640 /etc/openldap/slapd.conf")
os.system("/bin/chmod 0640 /etc/openldap/slapd.conf.default")