Update CFwarp.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-03-20 07:10:24 +00:00
parent c36da9c64c
commit f9f80698f5
1 changed files with 4 additions and 8 deletions

View File

@ -591,12 +591,11 @@ done
if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then
yellow "安装WARP失败还原VPS卸载WARP组件中……"
cwg && rm -rf /root/warpip
green "安装WARP失败建议如下"
echo
[[ $release = Centos && ${vsid} -lt 7 ]] && yellow "当前系统版本号Centos $vsid \n建议使用 Centos 7 以上系统 "
[[ $release = Ubuntu && ${vsid} -lt 18 ]] && yellow "当前系统版本号Ubuntu $vsid \n建议使用 Ubuntu 18 以上系统 "
[[ $release = Debian && ${vsid} -lt 10 ]] && yellow "当前系统版本号Debian $vsid \n建议使用 Debian 10 以上系统 "
yellow "1、强烈建议使用官方源升级系统及内核加速如已使用第三方源及内核加速请务必更新到最新版或重置为官方源"
yellow "2、部分VPS系统极度精简相关依赖需自行安装后再尝试"
red "建议选择WGCF核心来安装WARP"
exit
else
green "ok" && systemctl restart warp-go
@ -1414,14 +1413,11 @@ checkwgcf
if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then
yellow "安装WARP失败还原VPS卸载Wgcf-WARP组件中……"
cwg && rm -rf /root/warpip
green "卸载Wgcf-WARP组件完成"
green "安装WARP失败建议如下"
echo
[[ $release = Centos && ${vsid} -lt 7 ]] && yellow "当前系统版本号Centos $vsid \n建议使用 Centos 7 以上系统 "
[[ $release = Ubuntu && ${vsid} -lt 18 ]] && yellow "当前系统版本号Ubuntu $vsid \n建议使用 Ubuntu 18 以上系统 "
[[ $release = Debian && ${vsid} -lt 10 ]] && yellow "当前系统版本号Debian $vsid \n建议使用 Debian 10 以上系统 "
yellow "1、强烈建议使用官方源升级系统及内核加速如已使用第三方源及内核加速请务必更新到最新版或重置为官方源"
yellow "2、部分VPS系统极度精简相关依赖需自行安装后再尝试"
yellow "3、查看https://www.cloudflarestatus.com/,你当前VPS就近区域可能处于黄色的【Re-routed】状态"
red "建议选择WARP-GO核心来安装WARP"
exit
else
green "ok"