mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
freeDNS: fix
This commit is contained in:
parent
88a7d5ec10
commit
0b28b96a3a
@ -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}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user