V6.2.6 优先使用 wget-ssl
This commit is contained in:
parent
23dd69aebf
commit
24b2ad5133
|
@ -547,12 +547,6 @@ AutoUpdate_Main() {
|
||||||
[[ ! -f ${Custom_Variable} ]] && touch ${Custom_Variable}
|
[[ ! -f ${Custom_Variable} ]] && touch ${Custom_Variable}
|
||||||
LOAD_VARIABLE ${Default_Variable} ${Custom_Variable}
|
LOAD_VARIABLE ${Default_Variable} ${Custom_Variable}
|
||||||
|
|
||||||
[[ $(CHECK_PKG uclient-fetch) == true ]] && {
|
|
||||||
Downloader="uclient-fetch -q --no-check-certificate --timeout 5"
|
|
||||||
} || {
|
|
||||||
Downloader="wget -q --no-check-certificate --timeout 5"
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ -z $* ]] && PREPARE_UPGRADES $*
|
[[ -z $* ]] && PREPARE_UPGRADES $*
|
||||||
[[ $1 =~ path= && ! $* =~ -x && ! $* =~ -U ]] && PREPARE_UPGRADES $*
|
[[ $1 =~ path= && ! $* =~ -x && ! $* =~ -U ]] && PREPARE_UPGRADES $*
|
||||||
|
|
||||||
|
@ -702,7 +696,7 @@ AutoUpdate_Main() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
Version=V6.2.5
|
Version=V6.2.6
|
||||||
log_Path=/tmp
|
log_Path=/tmp
|
||||||
Update_Logs_Path=/tmp
|
Update_Logs_Path=/tmp
|
||||||
Upgrade_Command=sysupgrade
|
Upgrade_Command=sysupgrade
|
||||||
|
@ -716,4 +710,10 @@ Blue="\e[34m"
|
||||||
Grey="\e[36m"
|
Grey="\e[36m"
|
||||||
Green="\e[32m"
|
Green="\e[32m"
|
||||||
|
|
||||||
|
if [[ $(CHECK_PKG wget-ssl) == true ]];then
|
||||||
|
Downloader="wget-ssl -q --no-check-certificate -T 5 --tries 1 --no-dns-cache -x"
|
||||||
|
else
|
||||||
|
Downloader="uclient-fetch -q --no-check-certificate --timeout 5"
|
||||||
|
fi
|
||||||
|
|
||||||
AutoUpdate_Main $*
|
AutoUpdate_Main $*
|
Loading…
Reference in New Issue