From a1227b97188b746da835db366b8243af0efc9dd2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 19 Mar 2023 01:45:27 +0100 Subject: [PATCH] install_httpd-2.4.sh: also consider php sockets located in the /run/php directory. --- install_httpd-2.4.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 1c7cae4..d89a9c7 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -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 ? ## -