Skip to content

Commit

Permalink
freeDNS: fix periodic update typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-u authored and nachoparker committed Oct 23, 2017
1 parent 7ffc801 commit 4c7e562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/freeDNS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ configure()
#!/bin/bash
echo "FreeDNS client started"
echo "${URL}"
registeredIP=$\(nslookup ${DOMAIN_}|tail -n2|grep A|sed s/[^0-9.]//g)
registeredIP=\$(nslookup ${DOMAIN_}|tail -n2|grep A|sed s/[^0-9.]//g)
currentIP=\$(wget -q -O - http://checkip.dyndns.org|sed s/[^0-9.]//g)
[ "\$currentIP" != "\$registeredIP" ] && {
wget -q -O /dev/null ${URL}
Expand Down

0 comments on commit 4c7e562

Please sign in to comment.