修复大陆镜像文件

main
yanglc 2023-07-24 11:55:19 +08:00
parent 2f76751213
commit 79f73beb63
1 changed files with 3 additions and 3 deletions

View File

@ -97,13 +97,13 @@ function Install_ct() {
[[ -z ${addyn} ]] && addyn="n" [[ -z ${addyn} ]] && addyn="n"
if [[ ${addyn} == [Yy] ]]; then if [[ ${addyn} == [Yy] ]]; then
rm -rf gost-linux-"$bit"-"$ct_new_ver".gz rm -rf gost-linux-"$bit"-"$ct_new_ver".gz
wget --no-check-certificate https://gotunnel.oss-cn-shenzhen.aliyuncs.com/gost-linux-"$bit"-"$ct_new_ver".gz wget --no-check-certificate https://h5ai.amikufan.com/%E5%A4%87%E4%BB%BD/gost/gost-linux-"$bit"-"$ct_new_ver".gz
gunzip gost-linux-"$bit"-"$ct_new_ver".gz gunzip gost-linux-"$bit"-"$ct_new_ver".gz
mv gost-linux-"$bit"-"$ct_new_ver" gost mv gost-linux-"$bit"-"$ct_new_ver" gost
mv gost /usr/bin/gost mv gost /usr/bin/gost
chmod -R 777 /usr/bin/gost chmod -R 777 /usr/bin/gost
wget --no-check-certificate https://gotunnel.oss-cn-shenzhen.aliyuncs.com/gost.service && chmod -R 777 gost.service && mv gost.service /usr/lib/systemd/system wget --no-check-certificate https://h5ai.amikufan.com/%E5%A4%87%E4%BB%BD/gost/gost.service && chmod -R 777 gost.service && mv gost.service /usr/lib/systemd/system
mkdir /etc/gost && wget --no-check-certificate https://gotunnel.oss-cn-shenzhen.aliyuncs.com/config.json && mv config.json /etc/gost && chmod -R 777 /etc/gost mkdir /etc/gost && wget --no-check-certificate https://h5ai.amikufan.com/%E5%A4%87%E4%BB%BD/gost/config.json && mv config.json /etc/gost && chmod -R 777 /etc/gost
else else
rm -rf gost-linux-"$bit"-"$ct_new_ver".gz rm -rf gost-linux-"$bit"-"$ct_new_ver".gz
wget --no-check-certificate https://github.com/ginuerzh/gost/releases/download/v"$ct_new_ver"/gost-linux-"$bit"-"$ct_new_ver".gz wget --no-check-certificate https://github.com/ginuerzh/gost/releases/download/v"$ct_new_ver"/gost-linux-"$bit"-"$ct_new_ver".gz