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