install_httpd-2.4.sh: also consider php sockets located in the /run/php directory.
This commit is contained in:
		| @@ -67,12 +67,19 @@ shopt -u extglob | |||||||
| ## - | ## - | ||||||
|  |  | ||||||
| declare -a _php_socket_arr=() | declare -a _php_socket_arr=() | ||||||
| while IFS='' read -r -d '' _socket ; do  | while IFS='' read -r -d '' _socket ; do | ||||||
|    #echo "socket: $_socket" |    #echo "socket: $_socket" | ||||||
|    _php_major_version="$(echo "$_socket" | cut -d '-' -f2)" |    _php_major_version="$(echo "$_socket" | cut -d '-' -f2)" | ||||||
|    _php_socket_arr+=("${_php_major_version}:$_socket") |    _php_socket_arr+=("${_php_major_version}:$_socket") | ||||||
| done < <(find "/tmp" -type s -name "php*" -print0 | sort -z) | done < <(find "/tmp" -type s -name "php*" -print0 | sort -z) | ||||||
|  |  | ||||||
|  | if [[ -d "/run/php" ]] ; then | ||||||
|  |    while IFS='' read -r -d '' _socket ; do | ||||||
|  |       _php_major_version="$(echo "$_socket" | cut -d '-' -f2)" | ||||||
|  |       _php_socket_arr+=("${_php_major_version}:$_socket") | ||||||
|  |    done < <(find "/run/php" -type s -name "php*" -print0 | sort -z) | ||||||
|  | fi | ||||||
|  |  | ||||||
| ## - substitude path "/usr/local/httpd-$APACHE_VERSION" to "/usr/local/apache2" | ## - substitude path "/usr/local/httpd-$APACHE_VERSION" to "/usr/local/apache2" | ||||||
| ## - in apache configuration files ? | ## - in apache configuration files ? | ||||||
| ## - | ## - | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user