9 lines
672 B
Bash
Executable file
9 lines
672 B
Bash
Executable file
#!/bin/sh
|
|
#echo "certbot certonly --email $EMAIL --authenticator dns-ionos --dns-ionos-credentials /secret/$DOMAIN.ini --dns-ionos-propagation-seconds 900 --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --rsa-key-size 4096 -d $DOMAIN -d *.$DOMAIN"
|
|
certbot certonly --non-interactive --email $EMAIL --authenticator dns-ionos --dns-ionos-credentials /secret/$DOMAIN.ini --dns-ionos-propagation-seconds 60 --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --rsa-key-size 4096 -d $DOMAIN -d *.$DOMAIN
|
|
while :; do
|
|
sleep $((23*60*60)) # Convert to seconds
|
|
echo " "
|
|
echo "INFO: Attempting SSL certificate renewal"
|
|
certbot renew
|
|
done
|