mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
Merge pull request #12104 from reasonerjt/fix-pgsql-healthcheck-1.10
Update health check script for harbor-db (#12103) - Cherrypick to 1.10
This commit is contained in:
commit
6990ccaa31
@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
host="$(hostname -i || echo '127.0.0.1')"
|
||||
h="$(hostname -i || echo '127.0.0.1')"
|
||||
host="${h%%[[:space:]]*}" #remove the trailing space
|
||||
user="${POSTGRES_USER:-postgres}"
|
||||
db="${POSTGRES_DB:-$POSTGRES_USER}"
|
||||
export PGPASSWORD="${POSTGRES_PASSWORD:-}"
|
||||
|
Loading…
Reference in New Issue
Block a user