Skip to content
Snippets Groups Projects
Commit 0fc0b78c authored by Vinicius Ruoso's avatar Vinicius Ruoso Committed by Josiney de Souza
Browse files

Added the use of tryWget() when requesting the update package


The tryWget(), included in common.sh, will automatically get the proxy
configuration and use the appropriate wget(1) to retrieve the update
package.

Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
Acked-by: default avatarDanilo Kiyoshi Simizu Yorinori <danilok@c3sl.ufpr.br>
Acked-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Signed-off-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
parent ba7d8b8b
No related branches found
No related tags found
No related merge requests found
......@@ -53,18 +53,7 @@ function checkUpdate()
if test $? -eq 4; then
test -f "${TMPDIR}/SEED2-update.run" || rm -f ${TMPDIR}/SEED2-update.run
getProxyConf
if test -z "$phost"; then
PROXY=""
else
PROXY="http://${phost}:${pport}"
fi
http_proxy="${PROXY}" wget --tries=${UPDATETRIES} \
--timeout=${UPDATETIMEOUT} \
--proxy-user=${puid} \
--proxy-password=${ppasswd} \
${UPDATESERVER}/SEED2-update.run \
tryWget ${UPDATESERVER}/SEED2-update.run \
-O ${TMPDIR}/SEED2-update.run || return 1
cd ${TMPDIR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment