mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-22 15:36:52 +00:00
fix apache healthcheck
Signed-off-by: Zoey <zoey@z0ey.de> Co-Authored-By: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
ce7027d026
commit
a9c4b1fdf4
2 changed files with 11 additions and 1 deletions
8
Containers/apache/healthcheck.sh
Normal file
8
Containers/apache/healthcheck.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
curl -skfI localhost:8000 || exit 1
|
||||
if [ "$APACHE_PORT" != '443' ]; then
|
||||
curl -skfI localhost:"$APACHE_PORT" || exit 1
|
||||
else
|
||||
curl -skfI https://"$NC_DOMAIN":"$APACHE_PORT" || exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue