mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Retry wget on non-critical failures to try to avoid tmp dns issues
This commit is contained in:
parent
ca89607d9d
commit
3d66eaec01
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ ynh_setup_source () {
|
|||
cp $local_src $src_filename
|
||||
else # If not, download the source
|
||||
# Timeout option is here to enforce the timeout on dns query and tcp connect (c.f. man wget)
|
||||
local out=`wget --timeout 900 --no-verbose --output-document=$src_filename $src_url 2>&1` || ynh_print_err --message="$out"
|
||||
local out=`wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=$src_filename $src_url 2>&1` || ynh_print_err --message="$out"
|
||||
fi
|
||||
|
||||
# Check the control sum
|
||||
|
|
Loading…
Add table
Reference in a new issue