mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
minor: fix apachectl error message
This commit is contained in:
parent
db0534ed97
commit
51e85716ee
5
acme.sh
5
acme.sh
@ -809,6 +809,11 @@ _initpath() {
|
|||||||
|
|
||||||
|
|
||||||
_apachePath() {
|
_apachePath() {
|
||||||
|
if ! _exists apachectl ; then
|
||||||
|
_err "'apachecrl not found. It seems that apache is not installed, or you are not root user.'"
|
||||||
|
_err "Please use webroot mode to try again."
|
||||||
|
return 1
|
||||||
|
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 '"' )"
|
||||||
if _startswith "$httpdconfname" '/' ; then
|
if _startswith "$httpdconfname" '/' ; then
|
||||||
httpdconf="$httpdconfname"
|
httpdconf="$httpdconfname"
|
||||||
|
Loading…
Reference in New Issue
Block a user