From 2bf9a63bde10ab0483761fd6c70f81634eac26c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Romins?= Date: Tue, 7 Jan 2025 14:43:57 +0400 Subject: [PATCH] add amazon linux 2023 --- products-prepare/linux/yc-image-cleanup.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/products-prepare/linux/yc-image-cleanup.sh b/products-prepare/linux/yc-image-cleanup.sh index 01746eb3..a0aaad28 100755 --- a/products-prepare/linux/yc-image-cleanup.sh +++ b/products-prepare/linux/yc-image-cleanup.sh @@ -1,3 +1,4 @@ + #!/usr/bin/env bash # Common functions @@ -100,6 +101,16 @@ function preCheck { ;; esac ;; + "Amazon Linux") + case "$2" in + "2023") + echo "OK" + ;; + *) + echo "FAIL" + ;; + esac + ;; "Astra Linux") case "$2" in @@ -308,7 +319,13 @@ function definePMSType { ;; esac ;; - + "Amazon Linux") + case "$2" in + "2023") + echo "dnf" + ;; + esac + ;; "CentOS Linux") case "$2" in "6"|"7")