mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
412620b3a7
commit
367b29c50f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user