Change default db host for MySQL to 'localhost'.

This commit is contained in:
Christoph 2018-01-24 14:13:15 +01:00
parent 9fa27e1553
commit 56a764c61f

View File

@ -217,7 +217,7 @@ DEFAULT_SYMPA_LIST_DATA_DIR="/data/sympa/list_data"
DEFAULT_START_AT_BOOTTIME="yes"
DEFAULT_SYMPA_DB_TYPE="mysql"
DEFAULT_SYMPA_DB_HOST="127.0.0.1"
DEFAULT_SYMPA_DB_HOST="localhost"
DEFAULT_SYMPA_DB_NAME="sympa"
DEFAULT_SYMPA_DB_USER="sympa"
@ -948,9 +948,9 @@ if ! $UPDATE_SYMPA ; then
SYMPA_DB_HOST=$DEFAULT_SYMPA_DB_HOST
fi
if [ "$SYMPA_DB_HOST" = "localhost" ]; then
SYMPA_DB_HOST=127.0.0.1
fi
#if [ "$SYMPA_DB_HOST" = "localhost" ]; then
# SYMPA_DB_HOST=127.0.0.1
#fi
if [[ -z "$SYMPA_DB_PORT" ]]; then
if [[ "$SYMPA_DB_TYPE" = "mysql" ]]; then