mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 修改debian判断方式兼容更多系统
parent
186f307d1a
commit
c9bc6b53ba
|
@ -7,7 +7,7 @@
|
|||
- [VPS选购攻略,避坑指南](https://www.v2ray-agent.com/archives/1679975663984)
|
||||
- [Freevod 免费观影网站](https://share.freevod.org/)
|
||||
- [TG频道](https://t.me/v2rayAgentChannel)、[TG群组](https://t.me/technologyshare)、[官方网站](https://www.v2ray-agent.com/)
|
||||
- [RackNerd低价优质VPS深度评测](https://www.v2ray-agent.com/archives/1688973668640)
|
||||
- [RackNerd特价优质VPS深度评测](https://www.v2ray-agent.com/archives/1688973668640)
|
||||
|
||||
- **请给个⭐支持一下**
|
||||
|
||||
|
|
|
@ -58,14 +58,14 @@ checkSystem() {
|
|||
removeType='yum -y remove'
|
||||
upgrade="yum update -y --skip-broken"
|
||||
checkCentosSELinux
|
||||
elif grep </etc/issue -q -i "debian" && [[ -f "/etc/issue" ]] || grep </etc/issue -q -i "debian" && [[ -f "/proc/version" ]]; then
|
||||
elif [[ -f "/etc/issue" ]] && grep </etc/issue -q -i "debian" || [[ -f "/proc/version" ]] && grep </etc/issue -q -i "debian" || [[ -f "/etc/os-release" ]] && grep </etc/os-release -q -i "ID=debian"; then
|
||||
release="debian"
|
||||
installType='apt -y install'
|
||||
upgrade="apt update"
|
||||
updateReleaseInfoChange='apt-get --allow-releaseinfo-change update'
|
||||
removeType='apt -y autoremove'
|
||||
|
||||
elif grep </etc/issue -q -i "ubuntu" && [[ -f "/etc/issue" ]] || grep </etc/issue -q -i "ubuntu" && [[ -f "/proc/version" ]]; then
|
||||
elif [[ -f "/etc/issue" ]] && grep </etc/issue -q -i "ubuntu" || [[ -f "/proc/version" ]] && grep </etc/issue -q -i "ubuntu"; then
|
||||
release="ubuntu"
|
||||
installType='apt -y install'
|
||||
upgrade="apt update"
|
||||
|
@ -7876,7 +7876,7 @@ menu() {
|
|||
cd "$HOME" || exit
|
||||
echoContent red "\n=============================================================="
|
||||
echoContent green "作者:mack-a"
|
||||
echoContent green "当前版本:v2.10.4"
|
||||
echoContent green "当前版本:v2.10.5"
|
||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||
echoContent green "描述:八合一共存脚本\c"
|
||||
showInstallStatus
|
||||
|
|
Loading…
Reference in New Issue