mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-11-07 01:17:35 +01:00
extend eligible al2023 version to 6+
This commit is contained in:
@@ -77,12 +77,12 @@ function checkOS() {
|
||||
if [[ $ID == "amzn" ]]; then
|
||||
if [[ $VERSION_ID == "2" ]]; then
|
||||
OS="amzn"
|
||||
elif [[ "$(echo $PRETTY_NAME | cut -c 1-19)" == "Amazon Linux 2023.6" ]]; then
|
||||
elif [[ "$(echo $PRETTY_NAME | cut -c 1-18)" == "Amazon Linux 2023." ]] && [[ "$(echo $PRETTY_NAME | cut -c 19)" -ge 6 ]]; then
|
||||
OS="amzn2023"
|
||||
else
|
||||
echo "⚠️ Your version of Amazon Linux is not supported."
|
||||
echo ""
|
||||
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6"
|
||||
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6+"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user