mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
adjust postgres healthcheck
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
247f085d4c
commit
c130cc0c0f
1 changed files with 2 additions and 0 deletions
|
|
@ -2,4 +2,6 @@
|
|||
|
||||
test -f "/mnt/data/backup-is-running" && exit 0
|
||||
|
||||
psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:11000/$POSTGRES_DB" -c "select now()" && exit 0
|
||||
|
||||
psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:5432/$POSTGRES_DB" -c "select now()" || exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue