Fix Bug in determin httpd binary.

This commit is contained in:
Christoph 2017-06-16 00:37:33 +02:00
parent e61ae5c91b
commit 699587b212
2 changed files with 3 additions and 2 deletions

View File

@ -113,7 +113,7 @@ else
## - ## -
_httpd_binary="`which httpd`" _httpd_binary="`which httpd`"
if [ -z "$_httpd_binary" ]; then 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 [ -z "$_httpd_binary" ]; then
if [ -x "/usr/local/apache2/bin/httpd" ]; then if [ -x "/usr/local/apache2/bin/httpd" ]; then
_httpd_binary="/usr/local/apache2/bin/httpd" _httpd_binary="/usr/local/apache2/bin/httpd"

View File

@ -192,7 +192,8 @@ else
## - ## -
_httpd_binary="`which httpd`" _httpd_binary="`which httpd`"
if [ -z "$_httpd_binary" ]; then 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 [ -z "$_httpd_binary" ]; then
if [ -x "/usr/local/apache2/bin/httpd" ]; then if [ -x "/usr/local/apache2/bin/httpd" ]; then
_httpd_binary="/usr/local/apache2/bin/httpd" _httpd_binary="/usr/local/apache2/bin/httpd"