From 9c977083aaa774a53906220d7433429d3cac903a Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 16 Jun 2017 00:38:31 +0200 Subject: [PATCH] Fix Bug in determin httpd binary. --- install_httpd-2.4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 3c1048d..7264bb7 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -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"