Skip to content

Commit

Permalink
fix: modify official pg setup script (#5443)
Browse files Browse the repository at this point in the history
  • Loading branch information
kizuna-lek authored Oct 13, 2023
1 parent f3abe1a commit 9847a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/official-postgresql/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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%%\.*}"

Expand All @@ -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
docker-entrypoint.sh --config-file="$POSTGRESQL_CONF_FILE" --hba_file="$POSTGRESQL_CONF_DIR/pg_hba.conf"

0 comments on commit 9847a03

Please sign in to comment.