Skip to content

Commit 0701949

Browse files
theGreatWhiteSharknachoparker
authored andcommitted
spDYN: remove unused IPV6 argument in spDYN.sh
Signed-off-by: theGreatWhiteShark <thetruephil@googlemail.com>
1 parent c392529 commit 0701949

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

bin/ncp/NETWORKING/spDYN.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,9 @@ install()
3131
### Configuration
3232
HOST=$1
3333
TOKEN=$2
34-
IPv6=$3
3534
3635
# Get current IP address from
37-
if [[ $IPv6 == "yes" ]]; then
38-
get_ip_url="http://checkip6.spdyn.de"
39-
else
40-
get_ip_url="http://checkip4.spdyn.de"
41-
fi
36+
get_ip_url="http://checkip.spdyn.de"
4237
4338
update_url="https://update.spdyn.de/nic/update"
4439
@@ -100,11 +95,11 @@ configure()
10095

10196
# Adds file to cron to run script for DNS record updates and change permissions
10297
touch $CRONFILE
103-
echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN $TOKEN $IPv6 >/dev/null 2>&1" > "$CRONFILE"
98+
echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN $TOKEN >/dev/null 2>&1" > "$CRONFILE"
10499
chmod 644 "$CRONFILE"
105100

106101
# First-time execution of update script and print response from spdns.de server
107-
"$INSTALLPATH"/spdnsUpdater.sh "$DOMAIN" "$TOKEN" "$IPv6"
102+
"$INSTALLPATH"/spdnsUpdater.sh "$DOMAIN" "$TOKEN"
108103

109104
echo -e "\nspdnsUpdater is now enabled"
110105

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.13.2](https://github.com/nextcloud/nextcloudpi/commit/c24b3a3) (2019-06-17) nc-backup: fix exclusion of ncp backups
2+
[v1.13.3](https://github.com/nextcloud/nextcloudpi/commit/659d768) (2019-06-23) spDYN: remove unused IPV6 argument in spDYN.sh
3+
4+
[v1.13.2](https://github.com/nextcloud/nextcloudpi/commit/c392529) (2019-06-17) nc-backup: fix exclusion of ncp backups
35

46
[v1.13.1 ](https://github.com/nextcloud/nextcloudpi/commit/5de855f) (2019-06-01) ncp-web: avoid quotes in fields
57

0 commit comments

Comments
 (0)