package.py 402 B

123456789101112
  1. #!/usr/bin/python
  2. import os
  3. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  4. if not os.path.exists("/etc/sasl2/sasldb2"):
  5. os.system("/usr/sbin/saslpasswd2 -f /etc/sasl2/sasldb2 -p login")
  6. os.system("/usr/sbin/saslpasswd2 -f /etc/sasl2/sasldb2 -d login")
  7. os.system("/bin/chown root:mail /etc/sasl2/sasldb2")
  8. os.system("/bin/chmod 0640 /etc/sasl2/sasldb2")