Commit d74159dd authored by Yuanle Song's avatar Yuanle Song
Browse files

bugfix: RUNTIME_DIR should be a dir in $HOME;

fix bug 177 save dig result in LAST_IP_FILE
parent 8f4af35e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ BAD_CONF=51
# long.
HTTP_RESPONSE=/tmp/ddclient-http-api.html

RUNTIME_DIR=/var/run/ddclient-http
RUNTIME_DIR="$HOME/.config/ddclient-http/"
LAST_IP_FILE="$RUNTIME_DIR/last_ip"
FATAL_ERROR_FILE="$RUNTIME_DIR/fatal_error"

@@ -113,6 +113,7 @@ require_update() {
			err "Can't get current binding IP. dig failed."
			exit $DIG_FAILED
		fi
		echo "$OLDIP" > "$LAST_IP_FILE"
	else
		OLDIP=`cat $LAST_IP_FILE`
	fi