File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 24
24
# 4 - One or more required softwares are missing
25
25
# 8 - Couldn't reach PHP fpm status page, have you configured it with `pm.status_path = /status`?
26
26
# 9 - Couldn't connect to PHP fpm, is it running?
27
- # 10 - Malformed PHP fpm status page
28
27
# 111 - Couldn't connect to PHP fpm, is it running?
29
28
#
30
29
# Available options:
@@ -58,12 +57,7 @@ get_fpm_status() {
58
57
if test " $VERBOSE " = 1; then printf " Trying to connect to PHP-FPM via: %s%s\\ n" " $1 " " $SCRIPT_NAME " ; fi ;
59
58
60
59
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)
61
-
62
- RESPONSE_CODE=$( echo " $FPM_STATUS " | grep -o -E " ^Status:\s*\d{3}" | sed ' s/[^0-9]*//g' )
63
- if ! test " $RESPONSE_CODE " -eq " $RESPONSE_CODE " 2> /dev/null; then
64
- >&2 echo " Malformed PHP-FPM status page. Aborting." ;
65
- exit 10;
66
- fi
60
+ RESPONSE_CODE=$( echo " $FPM_STATUS " | grep " ^Status:" | sed ' s/[^0-9]*//g' )
67
61
68
62
if test " $RESPONSE_CODE " -lt 200 -o " $RESPONSE_CODE " -ge 400; then
69
63
>&2 printf " Unable to reach PHP-FPM status page. Response code: %s\\ n" " $RESPONSE_CODE " ;
You can’t perform that action at this time.
0 commit comments