diff --git a/entrypoint.sh b/entrypoint.sh index 60cbe1b..999050b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,7 +37,11 @@ chmod 600 /var/lib/postgresql/.ssh/* docker_setup_env -printf "%s:%s\n" "$PGPOOL_ADMIN_USERNAME" "(pg_md5 "$PGPOOL_ADMIN_PASSWORD)" > /etc/pgpool2/pcp.conf +{ + printf "%s:" "$PGPOOL_ADMIN_USERNAME" + pg_md5 "$PGPOOL_ADMIN_PASSWORD" + printf "\n" +} > /etc/pgpool2/pcp.conf { printf "localhost:9898:%s:%s\n" "$PGPOOL_ADMIN_USERNAME" "$PGPOOL_ADMIN_PASSWORD" printf "pgpool:9898:%s:%s\n" "$PGPOOL_ADMIN_USERNAME" "$PGPOOL_ADMIN_PASSWORD"