Files
nginx-proxy-manager/rootfs/bin/check-health.sh
Zoey c3f5d93acb remove php7 & php8.0
Signed-off-by: Zoey <zoey@z0ey.de>
2023-01-06 16:30:26 +01:00

10 lines
292 B
Bash

#!/bin/bash
if (cgi-fcgi -bind -connect /dev/php81.sock &> /dev/null && cgi-fcgi -bind -connect /dev/php82.sock &> /dev/null && [ "$(wget -q --no-check-certificate https://127.0.0.1:81/api -O - | jq --raw-output '.status')" == "OK" ]); then
echo "OK"
exit 0
else
echo "NOT OK"
exit 1
fi