Skip to content

Commit

Permalink
freeDNS: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 3, 2017
1 parent 88a7d5e commit 0b28b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/nextcloudpi-config.d/freeDNS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ configure()
#!/bin/bash
echo "FreeDNS client started"
echo "${URL}"
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)
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 0b28b96

Please sign in to comment.