From 50e847722b74e0aadc4705de6454fe2934851256 Mon Sep 17 00:00:00 2001 From: Arca Artem Date: Fri, 26 Feb 2016 00:03:59 +0000 Subject: [PATCH] Persist last ip in a unique file per host --- updater.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/updater.sh b/updater.sh index f562d41..2fba110 100755 --- a/updater.sh +++ b/updater.sh @@ -24,7 +24,7 @@ YDNS_USER="user@host.xx" YDNS_PASSWD="secret" YDNS_HOST="myhost.ydns.eu" -YDNS_LASTIP_FILE="/tmp/ydns_last_ip" +YDNS_LASTIP_FILE="/tmp/ydns_last_ip_$YDNS_HOST" ## # Don't change anything below. @@ -96,6 +96,7 @@ while getopts "hH:i:p:u:vV" opt; do H) YDNS_HOST=$OPTARG + YDNS_LASTIP_FILE="/tmp/ydns_last_ip_$YDNS_HOST" ;; i)