1
0
mirror of https://github.com/wmnnd/nginx-certbot synced 2023-04-20 18:47:46 +08:00

Executing nginx reload only after everything

This commit is contained in:
Yaroslav 2018-11-29 18:56:59 +04:00
parent 04786e797e
commit 2c9169d95e

View File

@ -67,5 +67,6 @@ 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 nginx -s reload
done
docker-compose exec nginx nginx -s reload