mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-17 17:27:03 +01:00
Support aliyun like centos
This commit is contained in:
@@ -65,6 +65,16 @@ function checkOS() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
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
|
if [[ $ID == "ol" ]]; then
|
||||||
OS="oracle"
|
OS="oracle"
|
||||||
if [[ ! $VERSION_ID =~ (8) ]]; then
|
if [[ ! $VERSION_ID =~ (8) ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user