diff --git a/lp-ddns/DEBIAN/control b/lp-ddns/DEBIAN/control index 4090fe0..a6f0b6f 100644 --- a/lp-ddns/DEBIAN/control +++ b/lp-ddns/DEBIAN/control @@ -3,8 +3,8 @@ Section: custom Priority: optional Maintainer: Jonathan Sélea Package: lp-ddns -Version: 0.1b -Standard-Version: 0.1b +Version: 0.1c +Standard-Version: 0.1c Architecture: all Essential: no Depends-On: curl diff --git a/lp-ddns/DEBIAN/copyright b/lp-ddns/DEBIAN/copyright new file mode 100644 index 0000000..e5b2955 --- /dev/null +++ b/lp-ddns/DEBIAN/copyright @@ -0,0 +1,34 @@ +Files: * +Copyright: 2019 Jonathan Sélea +License: GPL-2+ + +Files: debian/* +Copyright: 1998-2010 Josip Rodin +License: GPL-2+ + +Files: /etc/lp-ddns/* +Copyright: 2019 Jonathan Sélea +License: GPL-2+ + +Files: /usr/local/bin/lp-ddns +Copyright: 2019 Jonathan Sélea +License: GPL-2+ + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + '/usr/share/common-licenses/GPL-2'. diff --git a/lp-ddns/usr/local/bin/lp-ddns b/lp-ddns/usr/local/bin/lp-ddns index da4eef3..9bbf0bb 100755 --- a/lp-ddns/usr/local/bin/lp-ddns +++ b/lp-ddns/usr/local/bin/lp-ddns @@ -1,14 +1,6 @@ #!/bin/bash set -e - . /etc/lp-dyndns/settings.conf - -#RECORDID="11111" -#PASSWORD="passss" -#DOMAIN="sub.domain.tld" - - -# DO NOT MODIFY # 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)" @@ -22,10 +14,7 @@ CYAN='\033[0;36m' LCYAN='\033[0;37m' YELLOW='\033[1;33m' # END - - echo -e "The current external IP is ${YELLOW}${IP}${NC}" - if [ "${IP}" == "${CURRENTIP}" ]; then echo -e "${GREEN}The current IP matches the record ${DOMAIN}, no need to update.${NC}" @@ -33,6 +22,4 @@ else echo -e "${RED}Current IP does not match the record ${CURRENTIP} updating...${NC}" curl ${APIURL} fi - - exit 0 diff --git a/lp-ddns_0.1a.deb b/lp-ddns_0.1a.deb deleted file mode 100644 index adf3287..0000000 Binary files a/lp-ddns_0.1a.deb and /dev/null differ diff --git a/lp-ddns_0.1c.deb b/lp-ddns_0.1c.deb new file mode 100644 index 0000000..56de097 Binary files /dev/null and b/lp-ddns_0.1c.deb differ