From 4977258f7837561edca77190fc99f124b6af2e34 Mon Sep 17 00:00:00 2001 From: Daniel Steglich Date: Thu, 26 Mar 2015 18:45:17 +0100 Subject: [PATCH] use global wget options in addition to specific wget options --- actions/dynamicdns | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/dynamicdns b/actions/dynamicdns index cb5b0d922..c8e6d673d 100755 --- a/actions/dynamicdns +++ b/actions/dynamicdns @@ -300,12 +300,12 @@ doUpdate() if [ ! -z "${updateurl}" ];then doReplaceVars if [ "${basicauth}" = "enabled" ];then - local wgetoptions=" --user ${user} --password ${pass} " + WGETOPTIONS="${WGETOPTIONS} --user ${user} --password ${pass} " fi if [ "${ignoreCertError}" = "enabled" ];then - local wgetoptions=" --no-check-certificate " + WGETOPTIONS="${WGETOPTIONS} --no-check-certificate " fi - local cmd="${WGET} ${wgetoptions} ${updateurl}" + local cmd="${WGET} ${WGETOPTIONS} ${updateurl}" $cmd # ToDo: check the returning text from WEB Server. User need to give expected string. if [ ${?} -eq 0 ];then