From cdd5b0a00dbbb44e34cac4aba1ef8e814f4240f0 Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Wed, 26 Sep 2018 20:43:26 +0100 Subject: [PATCH] Don't overwrite IP records; this allows for different profiles. --- namesilo_ddns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/namesilo_ddns.sh b/namesilo_ddns.sh index ab1e0c3..38b7fb0 100644 --- a/namesilo_ddns.sh +++ b/namesilo_ddns.sh @@ -70,16 +70,16 @@ if [ "$deps_missing" = 1 ]; then fi ##Saved history pubic IP from last check -IP_FILE="/var/tmp/MyPubIP" +IP_FILE="/var/tmp/MyPubIP-$DOMAIN" ##Time IP last updated or 'No IP change' log message output -IP_TIME="/var/tmp/MyIPTime" +IP_TIME="/var/tmp/MyIPTime-$DOMAIN" ##How often to output 'No IP change' log messages NO_IP_CHANGE_TIME=86400 ##Response from Namesilo -RESPONSE="/tmp/namesilo_response.xml" +RESPONSE="/tmp/namesilo_response-$DOMAIN.xml" ##Choose randomly which OpenDNS resolver to use RESOLVER=resolver$(get_random 4 1).opendns.com