Commit 974507a7 authored by Steven Mondji-Lerider's avatar Steven Mondji-Lerider

Updating configuration script to remove double quota warning ( fix #1380 ) +...

Updating configuration script to remove double quota warning ( fix #1380 ) + removing some useless comments
parent ddb140d9
......@@ -199,12 +199,15 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do
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
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment