From e4bfae260b0ed4645039b49956c551a8debebd1f Mon Sep 17 00:00:00 2001 From: dryware-fr Date: Fri, 19 Jan 2018 17:26:56 +0100 Subject: [PATCH] Typo correction There was a typo in the script, rendering a TCP connection to MySQL or Postgres impossible. --- docker/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index c4d83556..0a167b3e 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -37,7 +37,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then echo >&2 'Error: POSTFIXADMIN_DB_USER and POSTFIXADMIN_DB_PASSWORD must be specified. ' exit 1 fi - timeout 15 bash -c "until echo > /dev/tcp/${POSTFIXADMIN_HOST}/${POSTFIXADMIN_DB_PORT}; do sleep 0.5; done" + timeout 15 bash -c "until echo > /dev/tcp/${POSTFIXADMIN_DB_HOST}/${POSTFIXADMIN_DB_PORT}; do sleep 0.5; done" fi if [ "$POSTFIXADMIN_DB_TYPE" = 'sqlite' ]; then