From 080ea6c206e341b8c824eda9983cea252b4605d3 Mon Sep 17 00:00:00 2001 From: M Ghayour Date: Thu, 5 Oct 2023 07:47:41 +0330 Subject: [PATCH] Support aliyun like centos --- openvpn-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index c47e08f..f3ddfcd 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -65,6 +65,16 @@ function checkOS() { exit 1 fi fi + if [[ $ID == "alinux" ]]; then + OS="centos" + if [[ $VERSION_ID -lt 3 ]]; then + echo "⚠️ Your version of Aliyun is not supported." + echo "" + echo "The script only support Aliyun 3 and above." + echo "" + exit 1 + fi + fi if [[ $ID == "ol" ]]; then OS="oracle" if [[ ! $VERSION_ID =~ (8) ]]; then