From e9357b7d3355be224f0ec982f509a261b4b74bf8 Mon Sep 17 00:00:00 2001 From: Daniel Ylitalo Date: Tue, 13 Jul 2021 12:35:32 +0200 Subject: [PATCH] Fix check for broken fpm-status page --- php-fpm-healthcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-fpm-healthcheck b/php-fpm-healthcheck index b476190..1b9bae8 100755 --- a/php-fpm-healthcheck +++ b/php-fpm-healthcheck @@ -60,7 +60,7 @@ get_fpm_status() { if test "$VERBOSE" = 1; then printf "php-fpm status output:\\n%s\\n" "$FPM_STATUS"; fi; - if test "$FPM_STATUS" = "File not found."; then + if [ "$FPM_STATUS" = "File not found." ] || [ "${FPM_STATUS#*File not found.}" != "$FPM_STATUS" ] || [ "$FPM_STATUS" = "Primary script unknown" ]; then >&2 printf "php-fpm status page non reachable\\n"; exit 8; fi;