From 5b43a77efa319a2303c155bbe9230c015d903b5d Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 8 Dec 2019 15:35:54 +0100 Subject: [PATCH] Change endpoint url, updated CONTROL --- lp-ddns/DEBIAN/control | 1 + lp-ddns/usr/local/bin/lp-ddns | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}"