Debian: Use ${dbc_dbserver} instead of ${dbc_dbhost}

The variable where dbconfig-common stores the host name of the database
server is ${dbc_dbserver}. Using ${dbc_dbhost} is incorrect.
This commit is contained in:
Adrian Perez 2012-07-20 03:13:55 +03:00 committed by Manuel Rego Casasnovas
parent 0917a2d396
commit aa258a57ee

View file

@ -11,10 +11,10 @@ if [[ $1 = configure && -r /etc/dbconfig-common/libreplan.conf ]]
then
. /etc/dbconfig-common/libreplan.conf
if [ -z "${dbc_dbhost}" ] ; then
if [ -z "${dbc_dbserver}" ] ; then
database_host='localhost'
else
database_host=${dbc_dbhost}
database_host=${dbc_dbserver}
fi
echo "Adding libreplan Tomcat configuration bits"