From 58942992cde566f550fe56be3bd4c5d2d2b9a587 Mon Sep 17 00:00:00 2001 From: Jorge Marino Date: Fri, 17 Nov 2023 22:21:28 +0000 Subject: [PATCH] Adding support for Amazon Linux 1, 2, and 2023 --- unattended_installer/install_functions/checks.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/unattended_installer/install_functions/checks.sh b/unattended_installer/install_functions/checks.sh index c1754d4855..63bf1f2a32 100644 --- a/unattended_installer/install_functions/checks.sh +++ b/unattended_installer/install_functions/checks.sh @@ -197,9 +197,15 @@ function check_dist() { if { [ "${DIST_NAME}" == "centos" ] || [ "${DIST_NAME}" == "rhel" ]; } && { [ "${DIST_VER}" -ne "7" ] && [ "${DIST_VER}" -ne "8" ] && [ "${DIST_VER}" -ne "9" ]; }; then notsupported=1 fi - if [ "${DIST_NAME}" == "amzn" ] && [ "${DIST_VER}" -ne "2" ]; then - notsupported=1 + + if [ "${DIST_NAME}" == "amzn" ]; then + if [ "${DIST_VER}" != "2" ] && + [ "${DIST_VER}" != "2023" ] && + [ "${DIST_VER}" != "2018.03" ]; then + notsupported=1 + fi fi + if [ "${DIST_NAME}" == "ubuntu" ]; then if [ "${DIST_VER}" == "16" ] || [ "${DIST_VER}" == "18" ] || [ "${DIST_VER}" == "20" ] || [ "${DIST_VER}" == "22" ]; then