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

This commit is contained in:
Steven Mondji-Lerider 2012-08-06 09:54:09 +00:00
parent 7048a7b1a3
commit 9526609ae5
2 changed files with 47 additions and 6 deletions

38
debian/alternc.config vendored
View File

@ -20,6 +20,8 @@ fi
db_input critical alternc/warningaclquota || true
# default values for local.sh
MYSQL_HOST=127.0.0.1
MYSQL_DATABASE=alternc
@ -66,6 +68,36 @@ if [ -r /etc/alternc/my_mail.cnf ]; then
fi
# mettre les valeurs de local.sh comme "default" pour debconf
db_get alternc/alternc_location
if [ -z "$RET" ]
then
db_set alternc/alternc_location "$ALTERNC_LOC"
fi
db_get alternc/alternc_location
#checking acl and quota activation, does't work with NFS yet.
location=$RET
mount_point=`df -P $location | tail -1 | /usr/bin/awk '{print $NF}'`
quota_activation=`quotaon -pa |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$mount_point'$/ {print $4}'`
acl_activation=`/bin/mount | awk '$NF ~ /acl/ && $NF !~ /noacl/ && $3 ~ /^\'"$mount_point"'$/ {print $3}'`
if [ "$mount_point" != "$acl_activation" ]
then
db_input critical alternc/acluninstalled || true
db_go
db_reset alternc/acluninstalled || true
db_fset alternc/acluninstalled "seen" "false" || true
exit 1
fi
if [ "$mount_point" != "$quota_activation" ]
then
db_input critical alternc/quotauninstalled || true
db_go
db_reset alternc/puotauninstalled || true
db_fset alternc/quotauninstalled "seen" "false" || true
fi
db_get alternc/hostingname
if [ -z "$RET" ]
then
@ -162,12 +194,6 @@ if [ -z "$RET" ]
db_set alternc/sql/backup_overwrite "$SQLBACKUP_OVERWRITE"
fi
db_get alternc/alternc_location
if [ -z "$RET" ]
then
db_set alternc/alternc_location "$ALTERNC_LOC"
fi
db_get alternc/mysql/alternc_mail_user
if [ -z "$RET" ]
then

15
debian/templates vendored
View File

@ -22,6 +22,21 @@ _Description: AlternC need ACL and QUOTA activated
Also, you need to activate group quota (grpquota)
to be able to use disk quota.
Template: alternc/acluninstalled
Type: note
_Description: AlternC need ACL activated
AlternC can't work without ACL activated on his file system.
ACL not activated
.
Also, you need to activate group quota (grpquota)
to be able to use disk quota.
Template: alternc/quotauninstalled
Type: note
_Description: AlternC QUOTA not activated
The QUOTA assigned to each user will be infinite.
.
Template: alternc/desktopname
Type: string
_Description: Fully qualified name of the desktop: