install_httpd-2.4.sh: fix error determin HTTPD binary;
This commit is contained in:
parent
7aa2b93d21
commit
5ee3139024
@ -138,7 +138,7 @@ fi
|
|||||||
## - Determin httpd binary
|
## - Determin httpd binary
|
||||||
## -
|
## -
|
||||||
_httpd_binary="$(which httpd)"
|
_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}')"
|
_httpd_binary="$(ps -axu | grep httpd | grep -e "^root" | grep -v grep | awk '{print$11}')"
|
||||||
if [ -z "$_httpd_binary" ]; then
|
if [ -z "$_httpd_binary" ]; then
|
||||||
if [ -x "/usr/local/apache2/bin/httpd" ]; then
|
if [ -x "/usr/local/apache2/bin/httpd" ]; then
|
||||||
@ -823,7 +823,7 @@ do
|
|||||||
__WITH_MOD_PHP=$_WITH_MOD_PHP
|
__WITH_MOD_PHP=$_WITH_MOD_PHP
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "$__WITH_MOD_PHP" = "true" ] ; then
|
if [[ "${__WITH_MOD_PHP,,}" = "true" ]] || [[ "${__WITH_MOD_PHP,,}" = 'yes' ]]; then
|
||||||
WITH_MOD_PHP=true
|
WITH_MOD_PHP=true
|
||||||
PHP_VERSION=
|
PHP_VERSION=
|
||||||
while [ "X$PHP_VERSION" = "X" ]
|
while [ "X$PHP_VERSION" = "X" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user