Updating configuration script to remove double quota warning ( fix #1380 ) + removing some useless comments

This commit is contained in:
Steven Mondji-Lerider 2013-02-08 13:54:21 +00:00
parent ddb140d91e
commit 974507a791
1 changed files with 8 additions and 43 deletions

49
debian/alternc.config vendored
View File

@ -201,10 +201,13 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do
quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}')
if [ -z "$quota_activation" -o "$quota_activation" != "$MOUNT_POINT" ]; then
db_input critical alternc/quotauninstalled || true
db_go
db_reset alternc/quotauninstalled || true
db_fset alternc/quotauninstalled "seen" "false" || true
db_get alternc/quotauninstalled
if [ -z "$RET" ]; then
db_input critical alternc/quotauninstalled || true
db_go
#db_reset alternc/quotauninstalled || true
db_set alternc/quotauninstalled "false" || true
fi
fi
;;
esac
@ -238,44 +241,6 @@ if [ -r /etc/alternc/my_mail.cnf ]; then
fi
#if [ "`mysql --defaults-file=/etc/mysql/debian.cnf -Bse 'SELECT "OK";' 2>/dev/null`" = "OK" ]; then
# db_input critical alternc/use_local_mysql || true
# db_go
# db_get alternc/use_local_mysql || true
# if [ "$RET" = "false" ]; then
# #user want to use a remote server
# check_mysql
# fi
#else
#db_input critical alternc/use_remote_mysql || true
#db_go
#db_get alternc/use_remote_mysql || true
# if [ "$RET" = "true" ]; then
# #user want to use a remote server
# check_mysql
# fi
#fi
#if [ -z "$ACL" ]; then
# db_input critical alternc/acluninstalled || true
# db_go
# db_title AlternC
# db_reset alternc/acluninstalled || true
# db_fset alternc/acluninstalled "seen" "false" || true
# exit 2
#fi
#quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}')
#
#if [ -z "$quota_activation" -o "$quota_activation" != "$MOUNT_POINT" ]; then
# db_input critical alternc/quotauninstalled || true
# db_go
# db_reset alternc/quotauninstalled || true
# db_fset alternc/quotauninstalled "seen" "false" || true
#fi
db_get alternc/hostingname
if [ -z "$RET" ]
then