Changeset 1026

Show
Ignore:
Timestamp:
04/26/06 14:03:53 (3 years ago)
Author:
benjamin
Message:

Handle quota issues, Closes #578

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bureau/class/m_quota.php

    r992 r1026  
    166166      // It's a disk resource, update it with shell command 
    167167      exec("/usr/lib/alternc/quota_edit $cuid $size"); 
     168      // Now we check that the value has been written properly :  
     169      exec("/usr/lib/alternc/quota_get ".$cuid,$a); 
     170      if ($size!=$a[1]) { 
     171        $err->raise("quota",1); 
     172        return false; 
     173      } 
    168174    } 
    169175    // We check that this ressource exists for this client : 
  • trunk/bureau/locales/fr_FR/LC_MESSAGES/main_manual.po

    r868 r1026  
    9292msgstr "Espanol" 
    9393 
     94msgid "err_quota_0" 
     95msgstr "OK" 
     96 
     97msgid "err_quota_1" 
     98msgstr "Les quotas disque ne sont pas activés sur le serveur" 
     99 
  • trunk/bureau/locales/main_manual.po

    r868 r1026  
    8888msgid "es_VE" 
    8989msgstr "Espanol" 
     90 
     91msgid "err_quota_0" 
     92msgstr "OK" 
     93 
     94msgid "err_quota_1" 
     95msgstr "Disk quota are not enabled on this server" 
     96 
  • trunk/src/quota_edit.sh

    r828 r1026  
    11#!/bin/sh 
    22. /etc/alternc/local.sh 
    3 /usr/sbin/setquota -r -g $1 $2 $2 0 0 $ALTERNC_LOC 
     3/usr/sbin/setquota -r -g $1 $2 $2 0 0 $ALTERNC_LOC 2>/dev/null || echo "Group quota are not enabled on /var/alternc." >&2