Skip to content

Commit

Permalink
spDYN: remove unused IPV6 argument in spDYN.sh
Browse files Browse the repository at this point in the history
Signed-off-by: theGreatWhiteShark <[email protected]>
  • Loading branch information
theGreatWhiteShark authored and nachoparker committed Jun 24, 2019
1 parent c392529 commit 0701949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 3 additions & 8 deletions bin/ncp/NETWORKING/spDYN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

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

[v1.13.2](https://github.com/nextcloud/nextcloudpi/commit/c392529) (2019-06-17) nc-backup: fix exclusion of ncp backups

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

Expand Down

0 comments on commit 0701949

Please sign in to comment.