We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b560ef commit 49af98fCopy full SHA for 49af98f
php-fpm-healthcheck
@@ -56,7 +56,11 @@ get_fpm_status() {
56
57
# Since I cannot use pipefail I'll just split these in two commands
58
FPM_STATUS=$(env -i REQUEST_METHOD="$REQUEST_METHOD" SCRIPT_NAME="$SCRIPT_NAME" SCRIPT_FILENAME="$SCRIPT_FILENAME" "$FCGI_CMD_PATH" -bind -connect "$1" 2> /dev/null)
59
- FPM_STATUS=$(echo "$FPM_STATUS" | tail +5)
+ if [ -f /etc/redhat-release ]; then
60
+ FPM_STATUS=$(echo "$FPM_STATUS" | tail -n +5)
61
+ else
62
+ FPM_STATUS=$(echo "$FPM_STATUS" | tail +5)
63
+ fi;
64
65
if test "$VERBOSE" = 1; then printf "php-fpm status output:\\n%s\\n" "$FPM_STATUS"; fi;
66
0 commit comments