修复一些下载源失效的问题

This commit is contained in:
monlor
2020-06-20 11:58:59 +08:00
parent 37aa2192c4
commit 571e7b1841
7 changed files with 126 additions and 13 deletions

View File

@@ -19,10 +19,16 @@ get_v2ray_bin() {
logsh "$service" "检测v2ray版本本地版本$result2,在线版本:$result1"
if [ "$result1" != "$result2" ]; then
logsh "$service" "版本不一致,正在更新..."
wgetsh ${mbroot}/apps/${appname}/bin/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
wgetsh ${mbroot}/apps/${appname}/bin/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
chmod +x ${mbroot}/apps/${appname}/bin/v2ray
chmod +x ${mbroot}/apps/${appname}/bin/v2ctl
wgetsh ${mbtmp}/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
wgetsh ${mbtmp}/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
chmod +x ${mbtmp}/v2ray
chmod +x ${mbtmp}/v2ctl
if ${mbtmp}/v2ray -version &> /dev/null; then
mv -f ${mbtmp}/v2ray ${mbroot}/apps/${appname}/bin/v2ray
mv -f ${mbtmp}/v2ctl ${mbroot}/apps/${appname}/bin/v2ctl
else
echo "测试v2ray程序失败跳过更新..."
fi
fi
fi
}