diff --git a/lp-ddns/DEBIAN/control b/lp-ddns/DEBIAN/control index dc41457..1a8ff02 100644 --- a/lp-ddns/DEBIAN/control +++ b/lp-ddns/DEBIAN/control @@ -6,4 +6,5 @@ Architecture: all Essential: no Installed-Size: 16 Maintainer: Jonathan Sélea +Depends-On: curl Description: Tool for managing Dynamic DNS toghether with FreeDNS.linux.pizza diff --git a/lp-ddns/usr/local/bin/lp-ddns b/lp-ddns/usr/local/bin/lp-ddns index 03b75c3..b9dcacb 100755 --- a/lp-ddns/usr/local/bin/lp-ddns +++ b/lp-ddns/usr/local/bin/lp-ddns @@ -9,7 +9,7 @@ set -e # DO NOT MODIFY # -IP="$(curl --connect-timeout 10 -s ipv4.is || curl --connect-timeout 10 -s ifconfig.me)" +IP="$(curl --connect-timeout 10 -s ipv4.is || curl --connect-timeout 10 -s ipv4.is)" #IP="$(curl --config /etc/lp-dyndns/curlrc)" CURRENTIP="$(dig ${DOMAIN} +short)" APIURL="https://freedns.linux.pizza/api/v1/remote/updatepw?record=${RECORDID}&password=${PASSWORD}&content=${IP}"