Преглед изворни кода

Add or remove dynamic dns have no effect if there is no provider

Bob Mottram пре 8 година
родитељ
комит
d2a028f75d
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6
    0
      src/freedombone-utils-dns

+ 6
- 0
src/freedombone-utils-dns Прегледај датотеку

139
     if [[ $ONION_ONLY != "no" ]]; then
139
     if [[ $ONION_ONLY != "no" ]]; then
140
         return
140
         return
141
     fi
141
     fi
142
+    if [[ "$DDNS_PROVIDER" == 'none' ]]; then
143
+        return
144
+    fi
142
     if [ ! -f /etc/inadyn.conf ]; then
145
     if [ ! -f /etc/inadyn.conf ]; then
143
         echo $'Unable to find inadyn configuration file /etc/inadyn.conf'
146
         echo $'Unable to find inadyn configuration file /etc/inadyn.conf'
144
         exit 5745
147
         exit 5745
173
     if [[ $ONION_ONLY != "no" ]]; then
176
     if [[ $ONION_ONLY != "no" ]]; then
174
         return
177
         return
175
     fi
178
     fi
179
+    if [[ "$DDNS_PROVIDER" == 'none' ]]; then
180
+        return
181
+    fi
176
     if [ ! -f /etc/inadyn.conf ]; then
182
     if [ ! -f /etc/inadyn.conf ]; then
177
         echo $'Unable to find inadyn configuration file /etc/inadyn.conf'
183
         echo $'Unable to find inadyn configuration file /etc/inadyn.conf'
178
         exit 5745
184
         exit 5745