Retry when transient error occurred
parent
098244b343
commit
5c0bfb6532
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
# 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1
|
# 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1
|
||||||
|
|
||||||
alias curl='curl --false-start --http2 --tlsv1.2 -L'
|
alias curl='"curl" --retry 5 --retry-delay 10 --retry-max-time 60 --false-start --http2 --tlsv1.2 -L'
|
||||||
|
|
||||||
# You can modify it to /usr/local/lib/v2ray
|
# You can modify it to /usr/local/lib/v2ray
|
||||||
V2RAY="/usr/local/share/v2ray"
|
V2RAY="/usr/local/share/v2ray"
|
||||||
|
|
|
@ -27,7 +27,7 @@ red=$(tput setaf 1)
|
||||||
green=$(tput setaf 2)
|
green=$(tput setaf 2)
|
||||||
reset=$(tput sgr0)
|
reset=$(tput sgr0)
|
||||||
|
|
||||||
alias curl='curl --false-start --http2 --tlsv1.2 -L'
|
alias curl='"curl" --retry 5 --retry-delay 10 --retry-max-time 60 --false-start --http2 --tlsv1.2 -L'
|
||||||
|
|
||||||
check_if_running_as_root() {
|
check_if_running_as_root() {
|
||||||
# If you want to run as another user, please modify $UID to be owned by this user
|
# If you want to run as another user, please modify $UID to be owned by this user
|
||||||
|
|
Loading…
Reference in New Issue