mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-24 00:16:50 +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
7
Containers/nextcloud/healthcheck.sh
Normal file
7
Containers/nextcloud/healthcheck.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue