From 207c6c9fc279630f37417c49be405ca577ba1235 Mon Sep 17 00:00:00 2001 From: blakeflei Date: Wed, 6 Nov 2024 17:53:07 -0500 Subject: [PATCH] specify al2023.6 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 openvpn-install.sh diff --git a/openvpn-install.sh b/openvpn-install.sh old mode 100755 new mode 100644 index b7f72ce..34c360f --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -77,12 +77,12 @@ function checkOS() { if [[ $ID == "amzn" ]]; then if [[ $VERSION_ID == "2" ]]; then OS="amzn" - elif [[ $VERSION_ID == "2023" ]]; then + elif [ "$(echo $PRETTY_NAME | cut -c 1-19)" == "Amazon Linux 2023.6" ]; then OS="amzn2023" else echo "⚠️ Your version of Amazon Linux is not supported." echo "" - echo "The script only support Amazon Linux 2." + echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6" echo "" exit 1 fi