Browse Source

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

Bob Mottram 8 years ago
parent
commit
d2a028f75d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-utils-dns

+ 6
- 0
src/freedombone-utils-dns View File

@@ -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