From 367b29c50f9fad1d0b358fdf09ffe10ffff9942f Mon Sep 17 00:00:00 2001 From: Daniel Steglich Date: Tue, 6 Sep 2016 08:24:14 +0000 Subject: [PATCH] dynamicdns: Fix file creation with update URL The wget command to push the current IP via update URL will download the update URL document without deleting the HTML document afterwards. This will cause the script to flood "/root/" folder. --- actions/dynamicdns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/dynamicdns b/actions/dynamicdns index f69bbfddf..ea482b31c 100755 --- a/actions/dynamicdns +++ b/actions/dynamicdns @@ -311,7 +311,7 @@ doUpdate() if [ "${ignoreCertError}" = "enabled" ];then WGETOPTIONS="${WGETOPTIONS} --no-check-certificate " fi - local cmd="${WGET} ${WGETOPTIONS} ${updateurl}" + local cmd="${WGET} -O /dev/null ${WGETOPTIONS} ${updateurl}" $cmd # ToDo: check the returning text from WEB Server. User need to give expected string. if [ ${?} -eq 0 ];then