浏览代码

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