remove dry-run

This commit is contained in:
Beth Parker 2025-03-22 19:58:34 -05:00
parent abfbe73186
commit 4a4275cb0c

View file

@ -11,7 +11,8 @@ do
if [[ $today > $expires ]]
then
echo Certificate for $f is expired, renewing >> $log
certbot renew --cert-name $f --dry-run >> /var/log/certbot-renewal.log
certbot renew --cert-name $f >> /var/log/certbot-renewal.log
continue
fi
#convert hostname into day of month between 0 and 28 to renew on specific day of month (reduce chance of running out of cert renewals)
hash=$(echo $f| md5sum)
@ -22,7 +23,7 @@ do
if [[ $dom -eq $rdate ]]
then
echo Date falls within renewal window for $f, attempting renewal >> $log
certbot renew --cert-name $f --dry-run >> $log
certbot renew --cert-name $f >> $log
break
fi
done