X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fcertbot_deploy.sh;h=582c3b9b677be1fe319d3d7901c32dc98c8c16fa;hb=a78a6aab55032721a4e658ebdb32e1305eff7640;hp=cc03926902011d60b8ae70510105e0f1f24f05f5;hpb=303dc52607bb0bb80e9e78a446960c1ecf30f89b;p=clearscm.git diff --git a/bin/certbot_deploy.sh b/bin/certbot_deploy.sh index cc03926..582c3b9 100755 --- a/bin/certbot_deploy.sh +++ b/bin/certbot_deploy.sh @@ -7,7 +7,7 @@ # onto the Synology. We should have already obtained new Let's # Encrypt certs and have placed them into /System/Certificates. # Now we just need to restart nginx on the Synology. This works -# because /usr/syno/etc/certificates/_archive already has been +# because /usr/syno/etc/certificate/_archive already has been # configured to look at /System/Certificates for new certs. # # The restarting of nginx on Synology is large and takes time. You @@ -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 Jan,Apr,Jul,Oct * certbot renew # # Author: Andrew@DeFaria.com # Created: Mon Oct 24 11:53:38 AM PDT 2022 @@ -27,7 +27,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 {