From aa258a57eef869022578fdbb8932b08b74eae907 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Fri, 20 Jul 2012 03:13:55 +0300 Subject: [PATCH] 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. --- debian/libreplan.postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/libreplan.postinst b/debian/libreplan.postinst index ebf1c6100..45af8e1d3 100644 --- a/debian/libreplan.postinst +++ b/debian/libreplan.postinst @@ -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"