modify yungao git

This commit is contained in:
2022-12-08 07:10:35 +08:00
parent fa0761a9f1
commit 87f00a7202
3 changed files with 20 additions and 14 deletions

View File

@@ -196,7 +196,7 @@ done
if [[ $VER == "" ]]; then
# 获取最新版本
echo "获取最新版..."
latest_version=`curl -s 'http://auth.fikkey.com/master/upgrades?latest=1' | grep -Po 'v\d+\.\d+.\d+' || true`
latest_version=`curl -s 'http://fikkey.com/master/upgrades?latest=1' | grep -Po 'v\d+\.\d+.\d+' || true`
if [[ "$latest_version" == "" ]]; then
echo "获取最新版失败请先登录官网填入主控IP"
exit 1
@@ -231,7 +231,7 @@ chmod +x install.sh
./install.sh $@
if [ -f /opt/cdnfly/master/view/upgrade.so ]; then
sed -i "s/https:\/\/update.cdnfly.cn\//http:\/\/auth.cdnfly.cn\/\/\/\//g" /opt/cdnfly/master/view/upgrade.so
sed -i "s/https:\/\/update.cdnfly.cn\//http:\/\/cdnfly.cn\/\/\/\//g" /opt/cdnfly/master/view/upgrade.so
supervisorctl -c /opt/cdnfly/master/conf/supervisord.conf reload
fi