From 78768e985b7f3d9dd7cd28ba54c8707af3446aa1 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 21 May 2016 14:47:23 +0800 Subject: [PATCH] minor, add more apache debug info --- acme.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index 510987e7..153c74e2 100755 --- a/acme.sh +++ b/acme.sh @@ -916,16 +916,19 @@ _apachePath() { return 1 fi httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )" + _debug httpdconfname "$httpdconfname" if _startswith "$httpdconfname" '/' ; then httpdconf="$httpdconfname" httpdconfname="$(basename $httpdconfname)" else httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )" + _debug httpdroot "$httpdroot" httpdconf="$httpdroot/$httpdconfname" fi + _debug httpdconf "$httpdconf" - if [ ! -f $httpdconf ] ; then - _err "Apache Config file not found" $httpdconf + if [ ! -f "$httpdconf" ] ; then + _err "Apache Config file not found" "$httpdconf" return 1 fi return 0