Browse Source

No letsencrypt renewals scripts for onion only installs

Bob Mottram 9 years ago
parent
commit
6c8d09082e
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

1680
 
1680
 
1681
 # script to automatically renew any Let's Encrypt certificates
1681
 # script to automatically renew any Let's Encrypt certificates
1682
 function letsencrypt_renewals {
1682
 function letsencrypt_renewals {
1683
+    if [[ $ONION_ONLY != "no" ]]; then
1684
+        return
1685
+    fi
1686
+
1683
     renewals_script=/etc/cron.monthly/letsencrypt
1687
     renewals_script=/etc/cron.monthly/letsencrypt
1684
     renewals_retry_script=/etc/cron.daily/letsencrypt
1688
     renewals_retry_script=/etc/cron.daily/letsencrypt
1685
     renewal_failure_msg=$'The certificate for $LETSENCRYPT_DOMAIN could not be renewed'
1689
     renewal_failure_msg=$'The certificate for $LETSENCRYPT_DOMAIN could not be renewed'