[quotas] On met en place l'installation des quotas.

* C'est fait durant le mkhome, sans utiliser le compte de toto passoir.
This commit is contained in:
Léo Colisson 2014-09-30 02:15:45 +02:00 committed by Pierre-Elliott Bécue
parent cd04584618
commit 0062fda2a0
2 changed files with 5 additions and 3 deletions

View file

@ -55,8 +55,10 @@ club_gid = 120
mailgroup = 8 mailgroup = 8
default_rights = 0755 default_rights = 0755
default_mail_rights = 0700 default_mail_rights = 0700
quota_soft = 16000000 quota_soft = 8000000
quota_hard = 17000000 quota_hard = 10000000
fquota_soft = 0
fquota_hard = 0
# Shell # Shell
login_shell='/bin/zsh' login_shell='/bin/zsh'
club_login_shell='/usr/bin/rssh' club_login_shell='/usr/bin/rssh'

View file

@ -144,7 +144,7 @@ class home:
os.symlink(home, symlink) os.symlink(home, symlink)
### Quota ### Quota
status, output = commands.getstatusoutput('/usr/sbin/edquota -p 4539 %s' % uid ) status, output = commands.getstatusoutput('/usr/sbin/setquota -u %s %s %s %s %s -a' % (uid, config.quota_soft, config.quota_hard, config.fquota_soft, config.fquota_hard) )
if status: if status:
print WARNING print WARNING
if self.debug: if self.debug: