enable nginx service before reloading nginx configuration

This commit is contained in:
VirtuBox 2018-10-07 18:58:52 +02:00 committed by GitHub
parent bd6df32062
commit 192307ac55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ if [ -f $HOME/.acme.sh/${domain_name}_ecc/fullchain.cer ]; then
--cert-file /etc/letsencrypt/live/${domain_name}/cert.pem \
--key-file /etc/letsencrypt/live/${domain_name}/key.pem \
--fullchain-file /etc/letsencrypt/live/${domain_name}/fullchain.pem \
--reloadcmd "sudo systemctl reload nginx.service"
--reloadcmd "sudo systemctl enable nginx.service && sudo systemctl start nginx.service"
else
echo "####################################"
echo "Acme.sh failed to issue certificate"