From 7e04fd72b601f8c9c55dafc1420991e63351088f Mon Sep 17 00:00:00 2001 From: Roman Ushakov Date: Thu, 7 Nov 2024 13:13:59 +0000 Subject: [PATCH] Auto sync yc-image-cleanup for 2024-11-07_13-13-36 --- products-prepare/linux/yc-image-cleanup.sh | 24 ++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/products-prepare/linux/yc-image-cleanup.sh b/products-prepare/linux/yc-image-cleanup.sh index 01746eb3..96c7eee5 100755 --- a/products-prepare/linux/yc-image-cleanup.sh +++ b/products-prepare/linux/yc-image-cleanup.sh @@ -112,6 +112,14 @@ function preCheck { esac ;; + "Calculate") + case "$2" in + *) + echo "OK" + ;; + esac + ;; + "CentOS Linux") case "$2" in "6"|"7"|"8") @@ -125,7 +133,7 @@ function preCheck { "CentOS Stream") case "$2" in - "8") + "8"|"9") echo "OK" ;; *) @@ -265,7 +273,7 @@ function preCheck { "Ubuntu") case "$2" in - "14.04"|"16.04"|"18.04"|"20.04"|"22.04") + "14.04"|"16.04"|"18.04"|"20.04"|"22.04"|"24.04") echo "OK" ;; *) @@ -309,6 +317,14 @@ function definePMSType { esac ;; + "Calculate") + case "$2" in + *) + echo "OK" + ;; + esac + ;; + "CentOS Linux") case "$2" in "6"|"7") @@ -322,7 +338,7 @@ function definePMSType { "CentOS Stream") case "$2" in - "8") + "8"|"9") echo "dnf" ;; esac @@ -407,7 +423,7 @@ function definePMSType { "Ubuntu") case "$2" in - "14.04"|"16.04"|"18.04"|"20.04") + "14.04"|"16.04"|"18.04"|"20.04"|"22.04"|"24.04") echo "deb" ;; esac