fix healthcheck for nextcloud and database

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-01-02 18:16:12 +01:00
parent 3e8cdf16b1
commit 54c642e787
4 changed files with 21 additions and 5 deletions

View 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