Browse Source

Only sleep if the certificate wasn't acquired

master 0.3.3
Nico Schottelius 7 months ago
parent
commit
4faf770cb6
  1. 6
      entrypoint.sh

6
entrypoint.sh

@ -36,7 +36,11 @@ if [ -z "$ONLYRENEWCERTS" -a -z "$ONLYRENEWCERTSONCE" ]; then
certbot certonly --agree-tos --cert-name "${DOMAIN}" \
--email "$EMAIL" --expand --non-interactive \
--domain "$DOMAIN" --standalone $STAGING
sleep 30
# If it failed, sleep before next try
if [ ! -f "/etc/letsencrypt/live/${DOMAIN}/fullchain.pem" ]; then
sleep 30
fi
# Correct permissions for multi user container/pod deployments
# if not indicated otherwise

Loading…
Cancel
Save