mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-09 20:04:11 +00:00
Added apache2 and httpd conditions to apachePath()
This commit is contained in:
parent
a19ad3fd1d
commit
33ed2b679c
6
acme.sh
6
acme.sh
@ -2452,8 +2452,12 @@ _apachePath() {
|
||||
if ! _exists apachectl; then
|
||||
if _exists apache2ctl; then
|
||||
_APACHECTL="apache2ctl"
|
||||
elif _exists apache2; then #added
|
||||
_APACHECTL="apache2" #added
|
||||
elif _exists httpd; then #added
|
||||
_APACHECTL="httpd" #added
|
||||
else
|
||||
_err "'apachectl not found. It seems that apache is not installed, or you are not root user.'"
|
||||
_err "'apachectl (or apache2 or httpd) 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user