From fde9b432c03d85c82f4bb00828f8139e288a37b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl-David=20Lasseri?= Date: Tue, 16 Sep 2014 19:33:06 +0200 Subject: [PATCH] [adherents.py] Creation de Owncloud/ dans le home des adherents --- gestion/gen_confs/adherents.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gestion/gen_confs/adherents.py b/gestion/gen_confs/adherents.py index 72046f3b..1a6731f3 100644 --- a/gestion/gen_confs/adherents.py +++ b/gestion/gen_confs/adherents.py @@ -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: