X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fcertbot_cleanup.sh;h=400c9a2c8088cd5f7732d2f1e589118390e38458;hb=360bd6c4a68de2625d6d09b117bf7b6cffd6cb78;hp=958f578bde4418b38a35723c53c09d0980ba05e9;hpb=303dc52607bb0bb80e9e78a446960c1ecf30f89b;p=clearscm.git diff --git a/bin/certbot_cleanup.sh b/bin/certbot_cleanup.sh index 958f578..400c9a2 100755 --- a/bin/certbot_cleanup.sh +++ b/bin/certbot_cleanup.sh @@ -12,7 +12,7 @@ # # See also: https://help.dreamhost.com/hc/en-us/articles/217555707-DNS-API-commands # -# Crontab: 0 0 20 */3 * certbot renew +# Crontab: 0 0 20 Jan,Apr,Jul,Oct * certbot renew # # Author: Andrew@DeFaria.com # Created: Fri 04 Jun 2021 11:20:16 PDT @@ -22,7 +22,12 @@ # (c) Copyright 2021, ClearSCM, Inc., all rights reserved # ################################################################################ -logfile="/tmp/$(basename $0).log" +certdir="/System/Certificates" + +mkdir -p $certdir + +logfile="$certdir/$(basename $0).log" + rm -f $logfile function log { @@ -75,3 +80,6 @@ removeTXT # Removal is instanteous but propagation will take some time. No need to wait # around though... + +# Now deploy new certs +/opt/clearscm/bin/certbot_deploy.sh