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
|
||||
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
|
||||
ENABLE_CJDNS="no"
|
||||
CJDNS_PRIVATE_KEY=
|
||||
|
@ -6216,6 +6219,7 @@ function add_ddns_domain {
|
|||
echo '' >> /etc/inadyn.conf
|
||||
echo "system $DDNS_PROVIDER" >> /etc/inadyn.conf
|
||||
echo ' ssl' >> /etc/inadyn.conf
|
||||
echo " checkip-url $GET_IP_ADDRESS_URL /" >> /etc/inadyn.conf
|
||||
if [ $DDNS_USERNAME ]; then
|
||||
echo " username $DDNS_USERNAME" >> /etc/inadyn.conf
|
||||
fi
|
||||
|
@ -6225,12 +6229,8 @@ function add_ddns_domain {
|
|||
fi
|
||||
|
||||
if ! grep -q "$CURRENT_DDNS_DOMAIN" /etc/inadyn.conf; then
|
||||
if [ $CURRENT_DDNS_CODE ]; then
|
||||
echo " alias $CURRENT_DDNS_DOMAIN,$CURRENT_DDNS_CODE" >> /etc/inadyn.conf
|
||||
else
|
||||
echo " alias $CURRENT_DDNS_DOMAIN" >> /etc/inadyn.conf
|
||||
fi
|
||||
fi
|
||||
chmod 600 /etc/inadyn.conf
|
||||
service inadyn restart
|
||||
systemctl daemon-reload
|
||||
|
|
Loading…
Reference in New Issue