Support aliyun like centos

This commit is contained in:
M Ghayour 2023-10-05 07:47:41 +03:30 committed by GitHub
parent 80feebed16
commit 080ea6c206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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