diff --git a/install_roundcube.sh b/install_roundcube.sh index 1dc6f1d..298b3f0 100755 --- a/install_roundcube.sh +++ b/install_roundcube.sh @@ -135,7 +135,7 @@ MAIN_DOMAIN=${_tmp_string##*.} 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"