install_httpd-2.4.sh: also consider php sockets located in the /run/php directory.

This commit is contained in:
Christoph 2023-03-19 01:45:27 +01:00
parent feedfc8e96
commit a1227b9718

View File

@ -67,12 +67,19 @@ shopt -u extglob
## -
declare -a _php_socket_arr=()
while IFS='' read -r -d '' _socket ; do
while IFS='' read -r -d '' _socket ; do
#echo "socket: $_socket"
_php_major_version="$(echo "$_socket" | cut -d '-' -f2)"
_php_socket_arr+=("${_php_major_version}:$_socket")
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"
## - in apache configuration files ?
## -