fix: various minor bugs
This commit is contained in:
parent
7d9241c000
commit
db4f5eca5f
5 changed files with 11 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
|||
trap exit TERM
|
||||
|
||||
if [ -n "${CERTBOT_DOMAINS}" ]; then
|
||||
sleep 5
|
||||
echo "registering domains..."
|
||||
|
||||
certbot --nginx -n --agree-tos \
|
||||
|
|
@ -12,11 +13,10 @@ if [ -n "${CERTBOT_DOMAINS}" ]; then
|
|||
while :; do
|
||||
echo "renewing domains..."
|
||||
certbot --nginx -n renew
|
||||
nginx -s reload
|
||||
sleep 12h & wait $!
|
||||
done &
|
||||
else
|
||||
echo "skipping certbot due to no domains!"
|
||||
fi
|
||||
fi &
|
||||
|
||||
exec nginx -g "daemon off;"
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue