Skip to content

Commit

Permalink
add amazon linux 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
pyToshka committed Jan 7, 2025
1 parent e60e7e4 commit 2bf9a63
Showing 1 changed file with 18 additions and 1 deletion.
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

0 comments on commit 2bf9a63

Please sign in to comment.