Skip to content

Commit 7c35191

Browse files
Merge pull request #36 from peak/master
Centos tail fix
2 parents 56b6e30 + 283afa1 commit 7c35191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-fpm-healthcheck

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +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-
FPM_STATUS=$(echo "$FPM_STATUS" | tail +5)
59+
FPM_STATUS=$(echo "$FPM_STATUS" | tail -n +5)
6060

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

0 commit comments

Comments
 (0)