From 2cf0aa3afe00be3a7d33b6b1e4316c8c008f8875 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 20 Nov 2019 09:53:16 +0000 Subject: [PATCH] Move config to separate catalogue --- README.md | 2 ++ lp-ddns/usr/local/bin/lp-ddns | 13 +++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index db6425b..45eabe1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lp-dyndns +This is the buildsource for the lp-dyndns package - mean for being distributed to users of FreeDNS.linux.pizza + diff --git a/lp-ddns/usr/local/bin/lp-ddns b/lp-ddns/usr/local/bin/lp-ddns index 20af78c..494fde7 100755 --- a/lp-ddns/usr/local/bin/lp-ddns +++ b/lp-ddns/usr/local/bin/lp-ddns @@ -1,11 +1,11 @@ #!/bin/bash set -e +. /etc/lp-dyndns/settings.conf -RECORDID="28378" -PASSWORD="pass123" -DOMAIN="test.jonathanselea.se" - +#RECORDID="28378" +#PASSWORD="pass123" +#DOMAIN="test.jonathanselea.se" # DO NOT MODIFY # @@ -27,14 +27,11 @@ echo -e "The current external IP is ${YELLOW}${IP}${NC}" if [ "${IP}" == "${CURRENTIP}" ]; then - echo -e "${GREEN}The current IP matches the record, no need to update.${NC}" + echo -e "${GREEN}The current IP matches the record ${DOMAIN}, no need to update.${NC}" else echo -e "${RED}Current IP does not match the record ${CURRENTIP} updating...${NC}" curl ${APIURL} fi -logger -sleep 300 - exit 0