File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 77#
88
99
10- UPDATEURL=https://freedns.afraid.org/dynamic/update.php
11- URL=" ${UPDATEURL} ?${UPDATEHASH} "
12-
1310install ()
1411{
1512 apt-get update
@@ -18,6 +15,9 @@ install()
1815
1916configure ()
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
3030echo "FreeDNS client started"
31- echo "${URL } "
32- registeredIP=$( dig +short " $DOMAIN " | tail -n1)
31+ echo "${url } "
32+ registeredIP=\ $ (dig +short "$DOMAIN "|tail -n1)
3333currentIP=\$ (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 }
3737echo "Registered IP: \$ registeredIP | Current IP: \$ currentIP"
3838EOF
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments