mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
use global wget options in addition to specific wget options
This commit is contained in:
parent
2c36160237
commit
4977258f78
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user