Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Jun 13, 2024
1 parent 77f7fa2 commit 628b037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/get_casaos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 628b037

Please sign in to comment.