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 2016-09-06 08:24:14 +00:00 committed by Sunil Mohan Adapa
parent 412620b3a7
commit 367b29c50f
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

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