all-in-one/Containers/postgresql/healthcheck.sh
Simon L. b1ad854de6 Revert changes to database container
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-05-17 14:05:58 +02:00

5 lines
178 B
Bash

#!/bin/bash
test -f "/mnt/data/backup-is-running" && exit 0
psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "select now()" || exit 1