mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +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
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
h="$(hostname -i || echo '127.0.0.1')"
|
host="localhost"
|
||||||
host="${h%%[[:space:]]*}" #remove the trailing space
|
|
||||||
user="${POSTGRES_USER:-postgres}"
|
user="${POSTGRES_USER:-postgres}"
|
||||||
db="${POSTGRES_DB:-$POSTGRES_USER}"
|
db="${POSTGRES_DB:-$POSTGRES_USER}"
|
||||||
export PGPASSWORD="${POSTGRES_PASSWORD:-}"
|
export PGPASSWORD="${POSTGRES_PASSWORD:-}"
|
||||||
|
Loading…
Reference in New Issue
Block a user