From bc1d13bb05b6d38553d460059f96bb6e9160f03e Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 16 Jun 2017 00:39:24 +0200 Subject: [PATCH] Fix Bug in determin httpd binary. --- create_vhost_php.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_vhost_php.sh b/create_vhost_php.sh index a211fe4..b360b99 100755 --- a/create_vhost_php.sh +++ b/create_vhost_php.sh @@ -172,7 +172,7 @@ __ipv6="`ifconfig | grep -e \"^\s*inet6-Adresse\" | awk '{print$2}' | grep -v -e # - _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"