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,7 @@
#!/bin/bash
sudo -u www-data nc -z "$POSTGRES_HOST" 5432 || exit 0
if ! sudo -u www-data nc -z localhost 9000 || ! sudo -u www-data nc -z localhost 7867; then
exit 1
fi