From a33f1b631f50e0b339e7d866b153ef361dc1f7f0 Mon Sep 17 00:00:00 2001 From: just do it Date: Mon, 25 Nov 2024 00:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF=E4=BA=91te?= =?UTF-8?q?ncentos=E7=B3=BB=E7=BB=9F=E5=AE=89=E8=A3=85=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openvpn-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index a0e04a49..14e1dd32 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -65,6 +65,16 @@ function checkOS() { exit 1 fi fi + if [[ $ID == "tencentos" ]]; then + OS="centos" + if [[ ${VERSION_ID%.*} -lt 3 ]]; then + echo "⚠️ Your version of CentOS is not supported." + echo "" + echo "The script only support CentOS 7 and CentOS 8." + echo "" + exit 1 + fi + fi if [[ $ID == "ol" ]]; then OS="oracle" if [[ ! $VERSION_ID =~ (8) ]]; then