Fix Bug in determin httpd binary.

This commit is contained in:
Christoph 2017-06-16 00:25:13 +02:00
parent f772a57c1a
commit 58cb2ffe1d

View File

@ -151,7 +151,7 @@ DOMAIN="${MAIN_DOMAIN}.$TLD"
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"