Merge remote-tracking branch 'upstream/develop' into HEAD
commit
464c642050
|
@ -13,8 +13,6 @@
|
||||||
|
|
||||||
# 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" --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"
|
||||||
DOWNLOAD_LINK_GEOIP="https://github.com/v2fly/geoip/releases/latest/download/geoip.dat"
|
DOWNLOAD_LINK_GEOIP="https://github.com/v2fly/geoip/releases/latest/download/geoip.dat"
|
||||||
|
@ -24,6 +22,10 @@ file_dlc='dlc.dat'
|
||||||
file_site='geosite.dat'
|
file_site='geosite.dat'
|
||||||
dir_tmp="$(mktemp -d)"
|
dir_tmp="$(mktemp -d)"
|
||||||
|
|
||||||
|
curl() {
|
||||||
|
$(type -P curl) -L -q --retry 5 --retry-delay 10 --retry-max-time 60 "$@"
|
||||||
|
}
|
||||||
|
|
||||||
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
|
||||||
if [[ "$UID" -ne '0' ]]; then
|
if [[ "$UID" -ne '0' ]]; then
|
||||||
|
|
Loading…
Reference in New Issue