From 9847a03e224ad74f6c3aec87350b2daf614d60c3 Mon Sep 17 00:00:00 2001 From: Lek Date: Fri, 13 Oct 2023 04:47:15 -0500 Subject: [PATCH] fix: modify official pg setup script (#5443) --- deploy/official-postgresql/scripts/setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/official-postgresql/scripts/setup.sh b/deploy/official-postgresql/scripts/setup.sh index da68bf75226..a3cfcc16c83 100644 --- a/deploy/official-postgresql/scripts/setup.sh +++ b/deploy/official-postgresql/scripts/setup.sh @@ -6,8 +6,8 @@ set -o nounset export POSTGRESQL_INIT_MAX_TIMEOUT="${POSTGRESQL_INIT_MAX_TIMEOUT:-60}" export POSTGRESQL_BIN_DIR="/usr/bin" -export POSTGRESQL_CONF_DIR="/kubeblocks/conf" -export POSTGRESQL_CONF_FILE="/kubeblocks/conf/postgresql.conf" +export POSTGRESQL_CONF_DIR="/kubeblocks" +export POSTGRESQL_CONF_FILE="$POSTGRESQL_CONF_DIR/postgresql.conf" export POSTGRESQL_MASTER_HOST=$KB_0_HOSTNAME KB_0_POD_NAME_PREFIX="${KB_0_HOSTNAME%%\.*}" @@ -29,4 +29,4 @@ else touch "$PGDATA"/standby.signal fi fi -docker-entrypoint.sh --config-file="$POSTGRESQL_CONF_FILE" --hba_file=/kubeblocks/conf/pg_hba.conf \ No newline at end of file +docker-entrypoint.sh --config-file="$POSTGRESQL_CONF_FILE" --hba_file="$POSTGRESQL_CONF_DIR/pg_hba.conf" \ No newline at end of file