[fix] debconf: avoid infinite loop (#1517)

Don't loop when debconf frontend is non-interactive.
This commit is contained in:
Pierre-Louis Bonicoli 2014-03-26 02:04:00 +01:00
parent 58603c0e40
commit c8cfbdf426
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ check_mysql()
STATE=`expr $STATE + 1`
else
db_input high alternc/remote_mysql_error || true
if [ $? -eq 30 ]; then
exit 4
fi
db_go
db_get alternc/remote_mysql_error || true
if [ "$RET" = "false" ]; then