mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix healthcheck for nextcloud and database
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
3e8cdf16b1
commit
54c642e787
4 changed files with 21 additions and 5 deletions
5
Containers/postgresql/healthcheck.sh
Normal file
5
Containers/postgresql/healthcheck.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
test -f "/mnt/data/backup-is-running" && exit 0
|
||||
|
||||
psql -d "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "select now()" || exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue