From 628b0373934dfd690e4e97b1113b1b645080581c Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Thu, 13 Jun 2024 10:39:18 +0800 Subject: [PATCH] 1 --- Tools/get_casaos.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/get_casaos.sh b/Tools/get_casaos.sh index b11bbdc..fda97b1 100644 --- a/Tools/get_casaos.sh +++ b/Tools/get_casaos.sh @@ -192,6 +192,7 @@ Get_Download_Url_Domain() { REGION=$(${sudo_cmd} curl --connect-timeout 2 -s https://ifconfig.io/country_code || echo "") fi if [[ "${REGION}" = "China" ]] || [[ "${REGION}" = "CN" ]]; then + REGION="CN" CASA_DOWNLOAD_DOMAIN="https://casaos.oss-cn-shanghai.aliyuncs.com/" fi } @@ -466,7 +467,7 @@ Install_Docker() { ${sudo_cmd} mkdir -p "${PREFIX}/etc/apt/sources.list.d" fi GreyStart - if [[ "${REGION}" = "China" ]] || [[ "${REGION}" = "CN" ]]; then + if [[ "${REGION}" = "CN" ]]; then # ${sudo_cmd} curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun ${sudo_cmd} curl -fsSL https://play.cuse.eu.org/get_docker.sh | bash -s docker --mirror Aliyun else @@ -484,7 +485,7 @@ Install_Docker() { #Install Rclone Install_rclone_from_source() { ${sudo_cmd} wget -qO ./install.sh https://rclone.org/install.sh - if [[ "${REGION}" = "China" ]] || [[ "${REGION}" = "CN" ]]; then + if [[ "${REGION}" = "CN" ]]; then sed -i 's/downloads.rclone.org/casaos.oss-cn-shanghai.aliyuncs.com/g' ./install.sh else sed -i 's/downloads.rclone.org/get.casaos.io/g' ./install.sh