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.
This commit is contained in:
Daniel Steglich authored and Sunil Mohan Adapa committed 2016-09-07 22:14:57 +05:30
1 parent 412620b3a7
commit 367b29c50f
1 file changed
+1 -1
+1 -1
View File
@@ -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