From eea04ce6dd6477d4eeab2559c9c9ad984821f54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl-David=20Lasseri?= Date: Tue, 16 Sep 2014 20:23:18 +0200 Subject: [PATCH] [adherents.py] On rajoute le bon gid de www-data --- gestion/gen_confs/adherents.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gestion/gen_confs/adherents.py b/gestion/gen_confs/adherents.py index 512f88b0..0e99f46b 100644 --- a/gestion/gen_confs/adherents.py +++ b/gestion/gen_confs/adherents.py @@ -4,7 +4,7 @@ # Copyright (C) Frédéric Pauget # Licence : GPLv2 -import smtplib, sys, commands, shutil, os, traceback +import smtplib, sys, commands, shutil, os, traceback,grp sys.path.append('/usr/scripts/gestion') from affich_tools import cprint, anim, OK, WARNING, ERREUR import config @@ -168,8 +168,8 @@ class home: ### 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) + os.chown(home + '/OwnCloud', int(uid), grp.getgrnam('www-data').gr_gid) + os.chmod(home + '/OwnCloud',0770) except: print ERREUR if self.debug: