remove dry-run
This commit is contained in:
parent
abfbe73186
commit
4a4275cb0c
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue