Fix Bug in determin httpd binary.

This commit is contained in:
Christoph 2017-06-16 00:38:31 +02:00
parent 45f35f6b47
commit 9c977083aa

View File

@ -93,7 +93,7 @@ _BASE_WEBSPACE_DIR="/var/www"
## -
_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"