[adherents.py] Creation de Owncloud/ dans le home des adherents
This commit is contained in:
parent
95e2503320
commit
fde9b432c0
1 changed files with 5 additions and 1 deletions
|
@ -165,7 +165,11 @@ class home:
|
|||
file(home + '/.forward', 'w').write(mail_redirect + '\n')
|
||||
os.chown(home + '/.forward', int(uid), config.gid)
|
||||
os.chmod(home + '/.forward', 0604)
|
||||
|
||||
### Owncloud dans le home
|
||||
if not os.path.exists(home + '/Owncloud'):
|
||||
os.mkdir(home + '/Owncloud')
|
||||
os.chown(home + '/Owncloud', int(uid), "www-data")
|
||||
os.chmod(home + '/Owncloud',770)
|
||||
except:
|
||||
print ERREUR
|
||||
if self.debug:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue