9 lines
162 B
Bash
9 lines
162 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if env -i REQUEST_METHOD=GET SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping cgi-fcgi -bind -connect /var/run/php/php-fpm.sock; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
exit 1
|