Skip to content

Commit cdd5b0a

Browse files
committed
Don't overwrite IP records; this allows for different profiles.
1 parent eb8e019 commit cdd5b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

namesilo_ddns.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ if [ "$deps_missing" = 1 ]; then
7070
fi
7171

7272
##Saved history pubic IP from last check
73-
IP_FILE="/var/tmp/MyPubIP"
73+
IP_FILE="/var/tmp/MyPubIP-$DOMAIN"
7474

7575
##Time IP last updated or 'No IP change' log message output
76-
IP_TIME="/var/tmp/MyIPTime"
76+
IP_TIME="/var/tmp/MyIPTime-$DOMAIN"
7777

7878
##How often to output 'No IP change' log messages
7979
NO_IP_CHANGE_TIME=86400
8080

8181
##Response from Namesilo
82-
RESPONSE="/tmp/namesilo_response.xml"
82+
RESPONSE="/tmp/namesilo_response-$DOMAIN.xml"
8383

8484
##Choose randomly which OpenDNS resolver to use
8585
RESOLVER=resolver$(get_random 4 1).opendns.com

0 commit comments

Comments
 (0)