Skip to content

Commit

Permalink
Make the script write the current IP address to file (reported by J. …
Browse files Browse the repository at this point in the history
…Taylor)
  • Loading branch information
Christian Jurk committed Oct 15, 2014
1 parent baf27b1 commit 842d1b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ YDNS_LASTIP_FILE="/tmp/ydns_last_ip"
##
# Don't change anything below.
##
YDNS_UPD_VERSION="20140824.1"
YDNS_UPD_VERSION="20141015.1"

if ! hash curl 2>/dev/null; then
echo "ERROR: cURL is missing."
Expand Down Expand Up @@ -137,6 +137,7 @@ if [ "$current_ip" != "$last_ip" ]; then

ok)
write_msg "YDNS host updated successfully: $YDNS_HOST ($current_ip)"
echo "$current_ip" > $YDNS_LASTIP_FILE
exit 0
;;

Expand Down

0 comments on commit 842d1b0

Please sign in to comment.