mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
Merge pull request #14682 from ninjadq/hostname_hardcode_to_localhost
Fix: Use local host on db's healthcheck
This commit is contained in:
commit
0f6692f68f
@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
h="$(hostname -i || echo '127.0.0.1')"
|
||||
host="${h%%[[:space:]]*}" #remove the trailing space
|
||||
host="localhost"
|
||||
user="${POSTGRES_USER:-postgres}"
|
||||
db="${POSTGRES_DB:-$POSTGRES_USER}"
|
||||
export PGPASSWORD="${POSTGRES_PASSWORD:-}"
|
||||
|
Loading…
Reference in New Issue
Block a user