From 8b41b1e601ad3882c0b75f6e057e81c2b693e6d9 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Thu, 1 Mar 2018 22:40:59 -0600 Subject: [PATCH] added httpd and apache2 commands --- acme.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 56d10f88..e494096c 100755 --- a/acme.sh +++ b/acme.sh @@ -2452,8 +2452,13 @@ _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 "'apachectl 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