Give Nginx a moment to respond.

This commit is contained in:
Greyscale 2021-05-30 19:12:37 +02:00
parent 704d875595
commit 95384b26b8
2 changed files with 7 additions and 4 deletions

View file

@ -3,10 +3,10 @@ name: Build PHP Flavours
on:
push:
paths:
- php/php+apache/*
- php/php+cli/*
- php/php+nginx/*
- php/Dockerfile.Flavours
- 'php/php+apache/**'
- 'php/php+cli/**'
- 'php/php+nginx/**'
- 'php/Dockerfile.Flavours'
workflow_run:
workflows:
- Build PHP Core

View file

@ -35,8 +35,11 @@ certbot \
--agree-tos \
-d $LETSENCRYPT_DOMAINS
echo "Certbot complete!"
# replace the self-certs with these lovely new certs.
sed -i "s|ssl_certificate .*|ssl_certificate /etc/letsencrypt/live/${LETSENCRYPT_DOMAINS}/fullchain.pem;|g" /etc/nginx/sites-enabled/default-ssl
sed -i "s|ssl_certificate_key .*|ssl_certificate_key /etc/letsencrypt/live/${LETSENCRYPT_DOMAINS}/privkey.pem;|g" /etc/nginx/sites-enabled/default-ssl
echo "Reloading Nginx"
nginx -s reload
# Sleep for 24 hours and try again tomorrow with a renewal, just in case.