Kaynağa Gözat

No ddns credentials for onion only system

Bob Mottram 9 yıl önce
ebeveyn
işleme
bbbfd9dea0
1 değiştirilmiş dosya ile 9 ekleme ve 7 silme
  1. 9
    7
      src/freedombone

+ 9
- 7
src/freedombone Dosyayı Görüntüle

866
         exit 3
866
         exit 3
867
     fi
867
     fi
868
     if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
868
     if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
869
-        if [ ! $DDNS_USERNAME ]; then
870
-            echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option'
871
-            exit 7823
872
-        fi
873
-        if [ ! $DDNS_PASSWORD ]; then
874
-            echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option'
875
-            exit 6382
869
+        if [[ $ONION_ONLY == "no" ]]; then
870
+            if [ ! $DDNS_USERNAME ]; then
871
+                echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option'
872
+                exit 7823
873
+            fi
874
+            if [ ! $DDNS_PASSWORD ]; then
875
+                echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option'
876
+                exit 6382
877
+            fi
876
         fi
878
         fi
877
     fi
879
     fi
878
     if [ ! $SYSTEM_TYPE ]; then
880
     if [ ! $SYSTEM_TYPE ]; then