Changeset 3187


Ignore:
Timestamp:
06/26/12 10:08:49 (11 months ago)
Author:
squidly
Message:

Bugfixes gestions des droits

Location:
alternc/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/class/m_dom.php

    r3186 r3187  
    419419                  } 
    420420      } 
    421  
    422           //on corrige les permissions 
    423           exec("sudo /usr/lib/alternc/fixperms.sh -u ".$cuid); 
    424421 
    425422      // Creation des 3 sous-domaines par défaut : Vide, www et mail 
  • alternc/trunk/bureau/class/m_quota.php

    r3171 r3187  
    181181    if (isset($this->disk[$ressource])) { 
    182182      // It's a disk resource, update it with shell command 
    183       exec("/usr/lib/alternc/quota_edit $cuid $size"); 
     183      exec("/usr/lib/alternc/quota_edit $cuid $size &> /dev/null &"); 
    184184      // Now we check that the value has been written properly :  
    185       exec("usr/lib/alternc/quota_get $cuid",$a); 
     185      exec("/usr/lib/alternc/quota_get $cuid &> /dev/null &",$a); 
    186186    if ($size!=$a[1]) { 
    187187        $err->raise("quota",1); 
  • alternc/trunk/install/mysql.sh

    r3142 r3187  
    165165set_value password $alternc_mail_password $MYSQL_MAIL_CONFIG 
    166166 
    167 echo $SED_SCRIPT_MAIL 
    168 echo XXXXXX 
    169 echo $SED_SCRIPT_USR 
    170167 
    171168# take extra precautions here with the mysql password: 
     
    193190echo "Checking for MySQL connectivity" 
    194191$mysql -e "SHOW TABLES" >/dev/null && echo "MYSQL.SH OK!" || echo "MYSQL.SH FAILED: database user setup failed" 
    195 echo $grant_mail 
    196192# Final mysql setup: db schema 
    197193echo "installing AlternC schema in $database..." 
    198194$mysql < /usr/share/alternc/install/mysql.sql || echo cannot load database schema 
    199195$mysql <<EOF 
    200  $grant_mail 
     196$grant_mail 
    201197EOF 
  • alternc/trunk/src/mem_add

    r2949 r3187  
    3434    chown($uid, $uid, $p); 
    3535    system("/bin/chmod 02770 '$p'"); 
    36     system("/usr/bin/setfacl -m d:g:alterncpanel:rw- -m d:u:$uid:rw- -m d:g:$uid:rw- -m g:alterncpanel:rw- -m u:$uid:rw- -m g:$uid:rw- '$p'"); 
     36    system("/usr/lib/alternc/fixperms.sh -u '$uid' "); 
    3737} 
    3838 
Note: See TracChangeset for help on using the changeset viewer.