Parcourir la source

No letsencrypt renewals scripts for onion only installs

Bob Mottram il y a 9 ans
Parent
révision
6c8d09082e
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Voir le fichier

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