Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion products-prepare/linux/yc-image-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/usr/bin/env bash
# Common functions

Expand Down Expand Up @@ -100,6 +101,16 @@ function preCheck {
;;
esac
;;
"Amazon Linux")
case "$2" in
"2023")
echo "OK"
;;
*)
echo "FAIL"
;;
esac
;;

"Astra Linux")
case "$2" in
Expand Down Expand Up @@ -308,7 +319,13 @@ function definePMSType {
;;
esac
;;

"Amazon Linux")
case "$2" in
"2023")
echo "dnf"
;;
esac
;;
"CentOS Linux")
case "$2" in
"6"|"7")
Expand Down