Silence the start/stop commands.

This commit is contained in:
Andrea Dell'Amico 2020-05-17 16:42:11 +02:00
parent ba21e09bd6
commit f31207e7cb
1 changed files with 6 additions and 6 deletions

View File

@ -24,9 +24,9 @@ if [ ! -f "$ACME_SH_CONFIG_HOME/ok_certificate_issued" ] && [ "$ACME_SH_USE_DNS_
/bin/systemctl stop apache2 >/dev/null 2>&1
/bin/systemctl stop httpd >/dev/null 2>&1
else
service nginx stop
service apache2 stop
service httpd stop
service nginx stop >/dev/null 2>&1
service apache2 stop >/dev/null 2>&1
service httpd stop >/dev/null 2>&1
fi
$ACME_SH_BIN $ACME_SH_FIRST_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1
RETVAL=$?
@ -35,9 +35,9 @@ if [ ! -f "$ACME_SH_CONFIG_HOME/ok_certificate_issued" ] && [ "$ACME_SH_USE_DNS_
/bin/systemctl start apache2 >/dev/null 2>&1
/bin/systemctl start httpd >/dev/null 2>&1
else
service nginx start
service apache2 start
service httpd start
service nginx start >/dev/null 2>&1
service apache2 start >/dev/null 2>&1
service httpd start >/dev/null 2>&1
fi
else
$ACME_SH_BIN $ACME_SH_ISSUE_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1