Commit d4c2142f authored by Benjamin Graillot's avatar Benjamin Graillot Committed by root

Disable OwnCloud directory creation

parent 83363f12
......@@ -64,10 +64,10 @@ def reconfigure(api_client):
os.chown('/home-adh/mail/' + user['pseudo'], int(uid), 8)
# Owncloud dans le home
if not(os.path.exists(home + '/OwnCloud')) and not(os.path.islink(home + '/OwnCloud')):
os.makedirs(home + '/OwnCloud')
os.chown(home + '/OwnCloud',int(uid),grp.getgrnam('user').gr_gid)
os.chmod(home + '/OwnCloud', 0o700)
#if not(os.path.exists(home + '/OwnCloud')) and not(os.path.islink(home + '/OwnCloud')):
# os.makedirs(home + '/OwnCloud')
# os.chown(home + '/OwnCloud',int(uid),grp.getgrnam('user').gr_gid)
# os.chmod(home + '/OwnCloud', 0o700)
# Simlink
link = '/home-adh/{}'.format(user['pseudo'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment