Changes to cedrtbot scripts
authorAndrew DeFaria <A.DeFaria@cpanel.net>
Mon, 24 Oct 2022 19:11:50 +0000 (12:11 -0700)
committerAndrew DeFaria <A.DeFaria@cpanel.net>
Mon, 24 Oct 2022 19:11:50 +0000 (12:11 -0700)
Fixed Crontab line. Note, need only one crontab line.

bin/certbot_authentication.sh
bin/certbot_cleanup.sh
bin/certbot_deploy.sh

index b84191a..0cf53d4 100755 (executable)
@@ -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
index 98f8cfe..958f578 100755 (executable)
@@ -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
 
index 6340d60..cc03926 100755 (executable)
@@ -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"