Fix Bug in determin httpd binary.
This commit is contained in:
parent
3d0212870c
commit
3c3d691e96
@ -218,7 +218,7 @@ tmp_err_msg=$(mktemp)
|
||||
## -
|
||||
_httpd_binary="`which httpd`"
|
||||
if [ -z "$_httpd_binary" ]; then
|
||||
_httpd_binary="`ps -C httpd -f | grep -e \"^root\" | awk '{print$8}'`"
|
||||
_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
|
||||
_httpd_binary="/usr/local/apache2/bin/httpd"
|
||||
|
Loading…
Reference in New Issue
Block a user