Skip to content

Commit

Permalink
Auto sync yc-image-cleanup for 2024-09-18_15-16-23
Browse files Browse the repository at this point in the history
  • Loading branch information
rumnow committed Sep 18, 2024
1 parent e60e7e4 commit 36a6061
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions products-prepare/linux/yc-image-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ function preCheck {
esac
;;

"Calculate")
case "$2" in
*)
echo "OK"
;;
esac
;;

"CentOS Linux")
case "$2" in
"6"|"7"|"8")
Expand All @@ -125,7 +133,7 @@ function preCheck {

"CentOS Stream")
case "$2" in
"8")
"8"|"9")
echo "OK"
;;
*)
Expand Down Expand Up @@ -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"
;;
*)
Expand Down Expand Up @@ -309,6 +317,14 @@ function definePMSType {
esac
;;

"Calculate")
case "$2" in
*)
echo "OK"
;;
esac
;;

"CentOS Linux")
case "$2" in
"6"|"7")
Expand All @@ -322,7 +338,7 @@ function definePMSType {

"CentOS Stream")
case "$2" in
"8")
"8"|"9")
echo "dnf"
;;
esac
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 36a6061

Please sign in to comment.