diff --git a/openvpn-install.sh b/openvpn-install.sh index a0e04a4..14e1dd3 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