package.py 514 B

12345678910111213141516
  1. #/usr/bin/python
  2. import os
  3. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  4. if not os.path.exists("/home/samba"):
  5. os.system("/bin/mkdir /home/samba")
  6. os.system("/bin/chmod 0777 /home/samba")
  7. # needed by non-root sharing support.
  8. os.system("/bin/mkdir /var/lib/samba/usershares")
  9. os.system("/bin/chgrp users /var/lib/samba/usershares")
  10. os.system("/bin/chmod 1777 /var/lib/samba/usershares")
  11. os.system("/bin/chmod 0750 /var/lib/samba/winbindd_privileged")