External IP address URL
This commit is contained in:
parent
d135792d15
commit
3108b8faec
|
@ -327,6 +327,9 @@ REMOTE_BACKUPS_LOG=/var/log/remotebackups.log
|
||||||
# message if something fails to install
|
# message if something fails to install
|
||||||
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."
|
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."
|
||||||
|
|
||||||
|
# web site used to obtain the external IP address of the system
|
||||||
|
GET_IP_ADDRESS_URL="checkip.two-dns.de"
|
||||||
|
|
||||||
# cjdns settings
|
# cjdns settings
|
||||||
ENABLE_CJDNS="no"
|
ENABLE_CJDNS="no"
|
||||||
CJDNS_PRIVATE_KEY=
|
CJDNS_PRIVATE_KEY=
|
||||||
|
@ -6216,6 +6219,7 @@ function add_ddns_domain {
|
||||||
echo '' >> /etc/inadyn.conf
|
echo '' >> /etc/inadyn.conf
|
||||||
echo "system $DDNS_PROVIDER" >> /etc/inadyn.conf
|
echo "system $DDNS_PROVIDER" >> /etc/inadyn.conf
|
||||||
echo ' ssl' >> /etc/inadyn.conf
|
echo ' ssl' >> /etc/inadyn.conf
|
||||||
|
echo " checkip-url $GET_IP_ADDRESS_URL /" >> /etc/inadyn.conf
|
||||||
if [ $DDNS_USERNAME ]; then
|
if [ $DDNS_USERNAME ]; then
|
||||||
echo " username $DDNS_USERNAME" >> /etc/inadyn.conf
|
echo " username $DDNS_USERNAME" >> /etc/inadyn.conf
|
||||||
fi
|
fi
|
||||||
|
@ -6225,11 +6229,7 @@ function add_ddns_domain {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "$CURRENT_DDNS_DOMAIN" /etc/inadyn.conf; then
|
if ! grep -q "$CURRENT_DDNS_DOMAIN" /etc/inadyn.conf; then
|
||||||
if [ $CURRENT_DDNS_CODE ]; then
|
echo " alias $CURRENT_DDNS_DOMAIN" >> /etc/inadyn.conf
|
||||||
echo " alias $CURRENT_DDNS_DOMAIN,$CURRENT_DDNS_CODE" >> /etc/inadyn.conf
|
|
||||||
else
|
|
||||||
echo " alias $CURRENT_DDNS_DOMAIN" >> /etc/inadyn.conf
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
chmod 600 /etc/inadyn.conf
|
chmod 600 /etc/inadyn.conf
|
||||||
service inadyn restart
|
service inadyn restart
|
||||||
|
|
Loading…
Reference in New Issue