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")