From a87a4dcf1beed458da531630bd09fa4cc3d8beee Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Mon, 13 Jul 2020 09:23:37 +0800 Subject: [PATCH] =?UTF-8?q?[fix:10]=E4=BF=AE=E5=A4=8Dpg=5Fhba=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=90=AF=E7=94=A8md5=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10/prebuilds/usr/local/bin/appcommon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/10/prebuilds/usr/local/bin/appcommon.sh b/10/prebuilds/usr/local/bin/appcommon.sh index 363d8c7..df9a65c 100644 --- a/10/prebuilds/usr/local/bin/appcommon.sh +++ b/10/prebuilds/usr/local/bin/appcommon.sh @@ -177,7 +177,7 @@ postgresql_conf_set() { # $1 - 变量 # $2 - 值(列表) postgresql_hba_set() { - postgresql_common_conf_set "${PG_HBA_FILE}" "$@" + replace_in_file "${PG_HBA_FILE}" "${key}" "${value}" false } # 更新 pg_ident.conf 配置文件中指定变量值 @@ -386,7 +386,7 @@ postgresql_start_server_bg() { local -r pg_isready_args=("-h" "localhost" "-p" "${PG_PORT_NUMBER}" "-U" "postgres") local counter=$PG_INIT_MAX_TIMEOUT - LOG_I "Starting check PostgreSQL is ready status..." + LOG_I "Starting check PostgreSQL ready status..." while ! pg_isready "${pg_isready_args[@]}" >/dev/null 2>&1; do sleep 1 counter=$((counter - 1 ))