12345678910111213141516 |
- #/usr/bin/python
- import os
- def postInstall(fromVersion, fromRelease, toVersion, toRelease):
- if not os.path.exists("/home/samba"):
- os.system("/bin/mkdir /home/samba")
- os.system("/bin/chmod 0777 /home/samba")
- # needed by non-root sharing support.
- os.system("/bin/mkdir /var/lib/samba/usershares")
- os.system("/bin/chgrp users /var/lib/samba/usershares")
- os.system("/bin/chmod 1777 /var/lib/samba/usershares")
- os.system("/bin/chmod 0750 /var/lib/samba/winbindd_privileged")
|