Reload nginx after getting new LetsEncrypt certificate

This commit is contained in:
Yaroslav 2018-11-29 18:41:19 +04:00
parent 7ac0fc9349
commit 18fb999c29
1 changed files with 1 additions and 0 deletions

View File

@ -67,4 +67,5 @@ for domain in "${domains[@]}"; do
mkdir -p "$data_path/www"
docker-compose run --rm --entrypoint "certbot certonly --webroot -w /var/www/certbot -d $domain \
$staging_arg $email_arg --rsa-key-size $rsa_key_size --agree-tos --force-renewal" certbot
docker-compose exec nginx "/bin/sh -c 'nginx -s reload'"
done