fix debconf prompts
This commit is contained in:
parent
b820020a36
commit
e2b74aaa1b
|
@ -113,33 +113,33 @@ EOF
|
||||||
cp -a -f $CONFIGFILE $CONFIGFILE.tmp
|
cp -a -f $CONFIGFILE $CONFIGFILE.tmp
|
||||||
# SED_SCRIPT will be modified by update_var
|
# SED_SCRIPT will be modified by update_var
|
||||||
SED_SCRIPT=""
|
SED_SCRIPT=""
|
||||||
update_var alternc/hostingname HOSTING
|
update_var alternc-slave/hostingname HOSTING
|
||||||
update_var alternc/desktopname FQDN
|
update_var alternc-slave/desktopname FQDN
|
||||||
update_var alternc/public_ip PUBLIC_IP
|
update_var alternc-slave/public_ip PUBLIC_IP
|
||||||
update_var alternc/internal_ip INTERNAL_IP
|
update_var alternc-slave/internal_ip INTERNAL_IP
|
||||||
update_var alternc/monitor_ip MONITOR_IP
|
update_var alternc-slave/monitor_ip MONITOR_IP
|
||||||
update_var alternc/ns1 NS1_HOSTNAME
|
update_var alternc-slave/ns1 NS1_HOSTNAME
|
||||||
update_var alternc/ns2 NS2_HOSTNAME
|
update_var alternc-slave/ns2 NS2_HOSTNAME
|
||||||
update_var alternc/bind_internal BIND_INTERNAL
|
update_var alternc-slave/bind_internal BIND_INTERNAL
|
||||||
update_var alternc/default_mx DEFAULT_MX
|
update_var alternc-slave/default_mx DEFAULT_MX
|
||||||
update_var alternc/mysql/client MYSQL_CLIENT
|
update_var alternc-slave/mysql/client MYSQL_CLIENT
|
||||||
update_var alternc/sql/backup_type SQLBACKUP_TYPE
|
update_var alternc-slave/sql/backup_type SQLBACKUP_TYPE
|
||||||
update_var alternc/sql/backup_overwrite SQLBACKUP_OVERWRITE
|
update_var alternc-slave/sql/backup_overwrite SQLBACKUP_OVERWRITE
|
||||||
update_var alternc/alternc_location ALTERNC_LOC
|
update_var alternc-slave/alternc_location ALTERNC_LOC
|
||||||
sed -e "$SED_SCRIPT" < $CONFIGFILE > $CONFIGFILE.tmp
|
sed -e "$SED_SCRIPT" < $CONFIGFILE > $CONFIGFILE.tmp
|
||||||
mv -f $CONFIGFILE.tmp $CONFIGFILE
|
mv -f $CONFIGFILE.tmp $CONFIGFILE
|
||||||
|
|
||||||
# Setup grants
|
# Setup grants
|
||||||
db_get "alternc/mysql/host"
|
db_get "alternc-slave/mysql/host"
|
||||||
MYSQL_HOST="$RET"
|
MYSQL_HOST="$RET"
|
||||||
if [ "$MYSQL_HOST" != "localhost" -o -e /usr/sbin/mysqld ]; then
|
if [ "$MYSQL_HOST" != "localhost" -o -e /usr/sbin/mysqld ]; then
|
||||||
# compatibility shims with my.cnf
|
# compatibility shims with my.cnf
|
||||||
host="$RET"
|
host="$RET"
|
||||||
db_get "alternc/mysql/db"
|
db_get "alternc-slave/mysql/db"
|
||||||
database="$RET"
|
database="$RET"
|
||||||
db_get "alternc/mysql/user"
|
db_get "alternc-slave/mysql/user"
|
||||||
user="$RET"
|
user="$RET"
|
||||||
db_get "alternc/mysql/password"
|
db_get "alternc-slave/mysql/password"
|
||||||
password="$RET"
|
password="$RET"
|
||||||
|
|
||||||
# we source (instead of forking) mysql.sh so that it gets the local environment above
|
# we source (instead of forking) mysql.sh so that it gets the local environment above
|
||||||
|
@ -147,8 +147,8 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# forget the password
|
# forget the password
|
||||||
db_reset alternc/mysql/password || true
|
db_reset alternc-slave/mysql/password || true
|
||||||
db_fset alternc/mysql/password "seen" "false" || true
|
db_fset alternc-slave/mysql/password "seen" "false" || true
|
||||||
|
|
||||||
if [ -e $CONFIGFILE ]; then
|
if [ -e $CONFIGFILE ]; then
|
||||||
# source local.sh variables
|
# source local.sh variables
|
||||||
|
|
Loading…
Reference in New Issue