diff --git a/entrypoint.sh b/entrypoint.sh index 5696e20..1616d75 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -83,7 +83,7 @@ pg_setup_conf() { printf "max_replication_slots = 10\n" printf "shared_preload_libraries = 'repmgr'\n" if [[ -n $POSTGRES_MAX_CONNECTIONS ]]; then - printf "\nmax_connections = ${POSTGRES_MAX_CONNECTIONS}\n" + printf "\nmax_connections = '%s'\n" "$POSTGRES_MAX_CONNECTIONS" fi } >> "$PGDATA/postgresql.conf" }