Browse Source

External IP address URL

Bob Mottram 10 years ago
parent
commit
3108b8faec
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/freedombone

+ 5
- 5
src/freedombone View File

327
 # message if something fails to install
327
 # message if something fails to install
328
 CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
328
 CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
329
 
329
 
330
+# web site used to obtain the external IP address of the system
331
+GET_IP_ADDRESS_URL="checkip.two-dns.de"
332
+
330
 # cjdns settings
333
 # cjdns settings
331
 ENABLE_CJDNS="no"
334
 ENABLE_CJDNS="no"
332
 CJDNS_PRIVATE_KEY=
335
 CJDNS_PRIVATE_KEY=
6216
       echo '' >> /etc/inadyn.conf
6219
       echo '' >> /etc/inadyn.conf
6217
       echo "system $DDNS_PROVIDER" >> /etc/inadyn.conf
6220
       echo "system $DDNS_PROVIDER" >> /etc/inadyn.conf
6218
       echo '  ssl' >> /etc/inadyn.conf
6221
       echo '  ssl' >> /etc/inadyn.conf
6222
+      echo "  checkip-url $GET_IP_ADDRESS_URL /" >> /etc/inadyn.conf
6219
       if [ $DDNS_USERNAME ]; then
6223
       if [ $DDNS_USERNAME ]; then
6220
           echo "  username $DDNS_USERNAME" >> /etc/inadyn.conf
6224
           echo "  username $DDNS_USERNAME" >> /etc/inadyn.conf
6221
       fi
6225
       fi
6225
   fi
6229
   fi
6226
 
6230
 
6227
   if ! grep -q "$CURRENT_DDNS_DOMAIN" /etc/inadyn.conf; then
6231
   if ! grep -q "$CURRENT_DDNS_DOMAIN" /etc/inadyn.conf; then
6228
-      if [ $CURRENT_DDNS_CODE ]; then
6229
-          echo "  alias $CURRENT_DDNS_DOMAIN,$CURRENT_DDNS_CODE" >> /etc/inadyn.conf
6230
-      else
6231
-          echo "  alias $CURRENT_DDNS_DOMAIN" >> /etc/inadyn.conf
6232
-      fi
6232
+      echo "  alias $CURRENT_DDNS_DOMAIN" >> /etc/inadyn.conf
6233
   fi
6233
   fi
6234
   chmod 600 /etc/inadyn.conf
6234
   chmod 600 /etc/inadyn.conf
6235
   service inadyn restart
6235
   service inadyn restart