create_vhost.sh: support php socket also living in php run directory '/run/php'.
This commit is contained in:
parent
8d671966f5
commit
d7610514a5
@ -1842,15 +1842,24 @@ if [ "$_type" = "PHP-FPM" ]; then
|
|||||||
# -
|
# -
|
||||||
if [ "X$unix_socket" = "X" ] ; then
|
if [ "X$unix_socket" = "X" ] ; then
|
||||||
|
|
||||||
_unix_socket=`ls /tmp/php-${major_php_verison}*.sock 2>/dev/null`
|
_unix_socket_tmp_dir=`ls /tmp/php-${major_php_verison}*.sock 2>/dev/null`
|
||||||
|
|
||||||
_unix_socket_arr=();
|
if [[ "$(wc -w <<< "$_unix_socket_tmp_dir")" -gt 0 ]]; then
|
||||||
if [[ "$(wc -w <<< "$_unix_socket")" -gt 0 ]]; then
|
for _socket in ${_unix_socket_tmp_dir} ; do
|
||||||
for _socket in ${_unix_socket} ; do
|
|
||||||
_unix_socket_arr+=("$_socket")
|
_unix_socket_arr+=("$_socket")
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -d "/run/php" ]]; then
|
||||||
|
_unix_socket_run_dir="$(ls /run/php/php-${major_php_verison}*.sock 2>/dev/null)"
|
||||||
|
|
||||||
|
if [[ "$(wc -w <<< "$_unix_socket_run_dir")" -gt 0 ]]; then
|
||||||
|
for _socket in ${_unix_socket_run_dir} ; do
|
||||||
|
_unix_socket_arr+=("$_socket")
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "\033[32m--\033[m"
|
echo -e "\033[32m--\033[m"
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user