install_httpd-2.4.sh: fix error determin HTTPD binary;

This commit is contained in:
Christoph 2023-07-05 13:53:23 +02:00
parent 7aa2b93d21
commit 5ee3139024

View File

@ -138,7 +138,7 @@ fi
## - Determin httpd binary
## -
_httpd_binary="$(which httpd)"
if [ -z "$_httpd_binary" ]; then
if [ -n "$_httpd_binary" ]; then
_httpd_binary="$(ps -axu | grep httpd | grep -e "^root" | grep -v grep | awk '{print$11}')"
if [ -z "$_httpd_binary" ]; then
if [ -x "/usr/local/apache2/bin/httpd" ]; then
@ -823,7 +823,7 @@ do
__WITH_MOD_PHP=$_WITH_MOD_PHP
fi
done
if [ "$__WITH_MOD_PHP" = "true" ] ; then
if [[ "${__WITH_MOD_PHP,,}" = "true" ]] || [[ "${__WITH_MOD_PHP,,}" = 'yes' ]]; then
WITH_MOD_PHP=true
PHP_VERSION=
while [ "X$PHP_VERSION" = "X" ]