mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-24 22:21:40 +00:00
minor, add more apache debug info
This commit is contained in:
parent
2ee5d873db
commit
78768e985b
7
acme.sh
7
acme.sh
@ -916,16 +916,19 @@ _apachePath() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )"
|
httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )"
|
||||||
|
_debug httpdconfname "$httpdconfname"
|
||||||
if _startswith "$httpdconfname" '/' ; then
|
if _startswith "$httpdconfname" '/' ; then
|
||||||
httpdconf="$httpdconfname"
|
httpdconf="$httpdconfname"
|
||||||
httpdconfname="$(basename $httpdconfname)"
|
httpdconfname="$(basename $httpdconfname)"
|
||||||
else
|
else
|
||||||
httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )"
|
httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )"
|
||||||
|
_debug httpdroot "$httpdroot"
|
||||||
httpdconf="$httpdroot/$httpdconfname"
|
httpdconf="$httpdroot/$httpdconfname"
|
||||||
fi
|
fi
|
||||||
|
_debug httpdconf "$httpdconf"
|
||||||
|
|
||||||
if [ ! -f $httpdconf ] ; then
|
if [ ! -f "$httpdconf" ] ; then
|
||||||
_err "Apache Config file not found" $httpdconf
|
_err "Apache Config file not found" "$httpdconf"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user