From e7eb5a659729f3f263cf0d61df9252115e22dfde Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Mon, 24 Oct 2022 12:11:50 -0700 Subject: [PATCH] Changes to cedrtbot scripts Fixed Crontab line. Note, need only one crontab line. --- bin/certbot_authentication.sh | 2 +- bin/certbot_cleanup.sh | 6 +++--- bin/certbot_deploy.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/certbot_authentication.sh b/bin/certbot_authentication.sh index b84191a..0cf53d4 100755 --- a/bin/certbot_authentication.sh +++ b/bin/certbot_authentication.sh @@ -14,7 +14,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 */3 * certbot renew # # Note: If you symlink /etc/letsencrypt/renewal-hooks/{pre|post|deploy} # to the proper scripts then all you need is certbox renew. Also diff --git a/bin/certbot_cleanup.sh b/bin/certbot_cleanup.sh index 98f8cfe..958f578 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 */3 * certbot renew # # Author: Andrew@DeFaria.com # Created: Fri 04 Jun 2021 11:20:16 PDT @@ -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 diff --git a/bin/certbot_deploy.sh b/bin/certbot_deploy.sh index 6340d60..cc03926 100755 --- a/bin/certbot_deploy.sh +++ b/bin/certbot_deploy.sh @@ -17,7 +17,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 */3 * certbot renew # # Author: Andrew@DeFaria.com # Created: Mon Oct 24 11:53:38 AM PDT 2022 @@ -43,4 +43,4 @@ log "Restarting nginx on Synology" # Note: On DSM 6.x systemctl may be called /usr/syno/sbin/synosystemctl ssh root@jupiter systemctl restart nginx -log "Nginx restarted" \ No newline at end of file +log "Nginx restarted" -- 2.17.1