evoacme: fix web servers config check

This commit is contained in:
Jérémy Lecour 2017-10-13 11:18:37 +02:00 committed by Jérémy Lecour
parent 6d6d0760cd
commit e11958d101

View file

@ -213,7 +213,7 @@ main() {
# reload apache if present
if [ -n "$(pidof apache2)" ]; then
if [ $(${APACHE2CTL_BIN} -t 2>/dev/null) ]; then
if $($(command -v apache2ctl) -t 2>/dev/null); then
debug "Apache detected... reloading"
service apache2 reload
else
@ -223,7 +223,7 @@ main() {
# reload nginx if present
if [ -n "$(pidof nginx)" ]; then
if [ $(${NGINX_BIN} -t 2>/dev/null) ]; then
if $($(command -v nginx) -t 2>/dev/null); then
debug "Nginx detected... reloading"
service nginx reload
else