Changeset 3191


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

Modification du script de configuration pour verifier l'activation des ACL et des Quotas

Location:
alternc/trunk/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/debian/alternc.config

    r3142 r3191  
    2020 
    2121db_input critical alternc/warningaclquota || true 
     22 
     23 
    2224 
    2325# default values for local.sh 
     
    6769 
    6870# mettre les valeurs de local.sh comme "default" pour debconf 
     71db_get alternc/alternc_location 
     72if [ -z "$RET" ] 
     73    then 
     74db_set alternc/alternc_location "$ALTERNC_LOC" 
     75fi 
     76 
     77db_get alternc/alternc_location 
     78#checking acl and quota activation, does't work with NFS yet. 
     79location=$RET 
     80mount_point=`df -P $location | tail -1 | /usr/bin/awk '{print $NF}'` 
     81quota_activation=`quotaon -pa |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$mount_point'$/ {print $4}'` 
     82acl_activation=`/bin/mount | awk '$NF ~ /acl/ && $NF !~ /noacl/ && $3 ~ /^\'"$mount_point"'$/ {print $3}'` 
     83 
     84if [ "$mount_point" != "$acl_activation" ]                                                            
     85then                                            
     86        db_input critical alternc/acluninstalled || true 
     87        db_go 
     88    db_reset alternc/acluninstalled || true 
     89    db_fset alternc/acluninstalled "seen" "false" || true 
     90        exit 1 
     91fi            
     92 
     93if [ "$mount_point" != "$quota_activation" ] 
     94then 
     95        db_input critical alternc/quotauninstalled || true 
     96        db_go 
     97    db_reset alternc/puotauninstalled || true 
     98    db_fset alternc/quotauninstalled "seen" "false" || true 
     99fi 
     100 
    69101db_get alternc/hostingname 
    70102if [ -z "$RET" ] 
     
    161193    then 
    162194db_set alternc/sql/backup_overwrite "$SQLBACKUP_OVERWRITE" 
    163 fi 
    164  
    165 db_get alternc/alternc_location 
    166 if [ -z "$RET" ] 
    167     then 
    168 db_set alternc/alternc_location "$ALTERNC_LOC" 
    169195fi 
    170196 
  • alternc/trunk/debian/templates

    r3142 r3191  
    2222 Also, you need to activate group quota (grpquota) 
    2323 to be able to use disk quota. 
     24 
     25Template: alternc/acluninstalled 
     26Type: note 
     27_Description: AlternC need ACL activated 
     28 AlternC can't work without ACL activated on his file system. 
     29 ACL not activated  
     30 . 
     31 Also, you need to activate group quota (grpquota) 
     32 to be able to use disk quota. 
     33 
     34Template: alternc/quotauninstalled 
     35Type: note 
     36_Description: AlternC QUOTA not activated 
     37 The QUOTA assigned to each user will be infinite. 
     38 . 
    2439 
    2540Template: alternc/desktopname 
Note: See TracChangeset for help on using the changeset viewer.