diff options
author | theGreatWhiteShark <thetruephil@googlemail.com> | 2019-06-23 13:42:45 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-06-24 05:41:58 +0300 |
commit | 0701949f01f8fd1a00f63b721d621dcff7f6b20b (patch) | |
tree | d2f050d19290fee7a18472a18def704f7cae5c32 /bin/ncp | |
parent | c39252919f46ff5440d7539c2364d61898873438 (diff) |
spDYN: remove unused IPV6 argument in spDYN.shv1.13.3
Signed-off-by: theGreatWhiteShark <thetruephil@googlemail.com>
Diffstat (limited to 'bin/ncp')
-rw-r--r-- | bin/ncp/NETWORKING/spDYN.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/ncp/NETWORKING/spDYN.sh b/bin/ncp/NETWORKING/spDYN.sh index 6220ae52..a9a274c2 100644 --- a/bin/ncp/NETWORKING/spDYN.sh +++ b/bin/ncp/NETWORKING/spDYN.sh @@ -31,14 +31,9 @@ install() ### Configuration HOST=$1 TOKEN=$2 -IPv6=$3 # Get current IP address from -if [[ $IPv6 == "yes" ]]; then - get_ip_url="http://checkip6.spdyn.de" -else - get_ip_url="http://checkip4.spdyn.de" -fi +get_ip_url="http://checkip.spdyn.de" update_url="https://update.spdyn.de/nic/update" @@ -100,11 +95,11 @@ configure() # Adds file to cron to run script for DNS record updates and change permissions touch $CRONFILE - echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN $TOKEN $IPv6 >/dev/null 2>&1" > "$CRONFILE" + echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN $TOKEN >/dev/null 2>&1" > "$CRONFILE" chmod 644 "$CRONFILE" # First-time execution of update script and print response from spdns.de server - "$INSTALLPATH"/spdnsUpdater.sh "$DOMAIN" "$TOKEN" "$IPv6" + "$INSTALLPATH"/spdnsUpdater.sh "$DOMAIN" "$TOKEN" echo -e "\nspdnsUpdater is now enabled" |