소스 검색

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