From 58cb2ffe1d91930676b0703c8755fcc5d3ad9a14 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 16 Jun 2017 00:25:13 +0200 Subject: [PATCH] Fix Bug in determin httpd binary. --- install_postfixadmin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_postfixadmin.sh b/install_postfixadmin.sh index 703ee86..6e4b24d 100755 --- a/install_postfixadmin.sh +++ b/install_postfixadmin.sh @@ -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"