Commit eea04ce6 authored by Raphael-david Lasseri's avatar Raphael-david Lasseri

[adherents.py] On rajoute le bon gid de www-data

parent 5945308d
......@@ -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:
......
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