feat(脚本): 修改debian判断方式兼容更多系统

pull/785/head
mack-a 2023-07-30 23:41:53 +08:00
parent 186f307d1a
commit c9bc6b53ba
2 changed files with 4 additions and 4 deletions

View File

@ -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)
- **请给个⭐支持一下**

View File

@ -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 "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus