X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fcertbot_cleanup.sh;h=958f578bde4418b38a35723c53c09d0980ba05e9;hb=e7eb5a659729f3f263cf0d61df9252115e22dfde;hp=c7d723a5d97f0da4ea3cb80cf1dbc2fcfa56cf4a;hpb=f34b6888701268fa0ddab2d22bed59d9e8a35e89;p=clearscm.git diff --git a/bin/certbot_cleanup.sh b/bin/certbot_cleanup.sh index c7d723a..958f578 100755 --- a/bin/certbot_cleanup.sh +++ b/bin/certbot_cleanup.sh @@ -12,11 +12,11 @@ # # See also: https://help.dreamhost.com/hc/en-us/articles/217555707-DNS-API-commands # -# Crontab: 0 0 1 * * certbot renew --manual-auth-hook /path/to/certbot_authentication.sh --manual-cleanup-hook /path/to/certbot_cleanup.sh +# Crontab: 0 0 20 */3 * certbot renew # # Author: Andrew@DeFaria.com # Created: Fri 04 Jun 2021 11:20:16 PDT -# Modified: +# Modified: Mon Oct 24 11:53:38 AM PDT 2022 # Language: Bash # # (c) Copyright 2021, ClearSCM, Inc., all rights reserved @@ -65,9 +65,9 @@ function removeTXT { log "Removing TXT record $CERTBOT_DOMAIN = $CERTBOT_VALIDATION" cmd="$url&unique_id=$(uuidgen)&cmd=dns-remove_record&record=_acme-challenge.$CERTBOT_DOMAIN&type=TXT&value=$CERTBOT_VALIDATION" log "cmd: $cmd" - + response=$(wget -O- -q "$cmd") - + log "Response = $response" } # removeTXT