Update master.sh
This commit is contained in:
parent
c1dbecc281
commit
226029d63f
@ -196,7 +196,7 @@ done
|
|||||||
if [[ $VER == "" ]]; then
|
if [[ $VER == "" ]]; then
|
||||||
# 获取最新版本
|
# 获取最新版本
|
||||||
echo "获取最新版..."
|
echo "获取最新版..."
|
||||||
latest_version=`curl -s 'https://github.com/LoveesYe/cdnflydadao/web/upgrades?latest=1' | grep -Po 'v\d+\.\d+.\d+' || true`
|
latest_version=`curl -s 'http://auth.fikkey.com/upgrades?latest=1' | grep -Po 'v\d+\.\d+.\d+' || true`
|
||||||
if [[ "$latest_version" == "" ]]; then
|
if [[ "$latest_version" == "" ]]; then
|
||||||
echo "获取最新版失败,请先登录官网填入主控IP"
|
echo "获取最新版失败,请先登录官网填入主控IP"
|
||||||
exit 1
|
exit 1
|
||||||
@ -219,7 +219,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd /opt/
|
cd /opt/
|
||||||
download "https://github.com/LoveesYe/cdnflydadao/master/$tar_gz_name" "https://github.com/LoveesYe/cdnflydadao/master/$tar_gz_name" "$tar_gz_name"
|
download "https://github.com/LoveesYe/cdnflydadao/raw/main/master/$tar_gz_name" "https://github.com/LoveesYe/cdnflydadao/raw/main/master/$tar_gz_name" "$tar_gz_name"
|
||||||
|
|
||||||
tar xf $tar_gz_name
|
tar xf $tar_gz_name
|
||||||
rm -rf cdnfly
|
rm -rf cdnfly
|
||||||
|
Loading…
Reference in New Issue
Block a user