Skip to content

Commit ec66e40

Browse files
committed
freeDNS: fix hash
1 parent 311ccc7 commit ec66e40

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

bin/ncp/NETWORKING/freeDNS.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#
88

99

10-
UPDATEURL=https://freedns.afraid.org/dynamic/update.php
11-
URL="${UPDATEURL}?${UPDATEHASH}"
12-
1310
install()
1411
{
1512
apt-get update
@@ -18,6 +15,9 @@ install()
1815

1916
configure()
2017
{
18+
local updateurl=https://freedns.afraid.org/dynamic/update.php
19+
local url="${updateurl}?${UPDATEHASH}"
20+
2121
[[ $ACTIVE != "yes" ]] && {
2222
rm -f /etc/cron.d/freeDNS
2323
service cron restart
@@ -28,11 +28,11 @@ configure()
2828
cat > /usr/local/bin/freedns.sh <<EOF
2929
#!/bin/bash
3030
echo "FreeDNS client started"
31-
echo "${URL}"
32-
registeredIP=$(dig +short "$DOMAIN"|tail -n1)
31+
echo "${url}"
32+
registeredIP=\$(dig +short "$DOMAIN"|tail -n1)
3333
currentIP=\$(wget -q -O - http://checkip.dyndns.org|sed s/[^0-9.]//g)
3434
[ "\$currentIP" != "\$registeredIP" ] && {
35-
wget -q -O /dev/null ${URL}
35+
wget -q -O /dev/null ${url}
3636
}
3737
echo "Registered IP: \$registeredIP | Current IP: \$currentIP"
3838
EOF

changelog.md

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

2-
[v1.10.1](https://github.com/nextcloud/nextcloudpi/commit/9003eb0) (2019-03-13) nc-update-nc-apps-auto: notify user
2+
[v1.10.2](https://github.com/nextcloud/nextcloudpi/commit/f7baed0) (2019-03-16) freeDNS: fix hash
3+
4+
[v1.10.1](https://github.com/nextcloud/nextcloudpi/commit/311ccc7) (2019-03-13) nc-update-nc-apps-auto: notify user
35

46
[v1.10.0 ](https://github.com/nextcloud/nextcloudpi/commit/06073ed) (2019-03-13) add nc-previews-auto
57

0 commit comments

Comments
 (0)