Skip to content

Commit 283afa1

Browse files
authored
Update for posix compliant version
1 parent cd7e25d commit 283afa1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

php-fpm-healthcheck

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ get_fpm_status() {
5656

5757
# Since I cannot use pipefail I'll just split these in two commands
5858
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-
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;
59+
FPM_STATUS=$(echo "$FPM_STATUS" | tail -n +5)
6460

6561
if test "$VERBOSE" = 1; then printf "php-fpm status output:\\n%s\\n" "$FPM_STATUS"; fi;
6662

0 commit comments

Comments
 (0)