Explorar el Código

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

Bob Mottram hace 8 años
padre
commit
d2a028f75d
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/freedombone-utils-dns

+ 6
- 0
src/freedombone-utils-dns Ver fichero

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