Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit a1624b8

Browse files
committed
add amazon linux 2023
1 parent e60e7e4 commit a1624b8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

products-prepare/linux/yc-image-cleanup.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,16 @@ function preCheck {
218218
;;
219219
esac
220220
;;
221-
221+
"Amazon Linux")
222+
case "$2" in
223+
"2023")
224+
echo "OK"
225+
;;
226+
*)
227+
echo "FAIL"
228+
;;
229+
esac
230+
;;
222231
"RED OS")
223232
case "$2" in
224233
"7.3")
@@ -276,6 +285,7 @@ function preCheck {
276285
*)
277286
echo "FAIL"
278287
;;
288+
279289
esac
280290
}
281291

@@ -388,7 +398,13 @@ function definePMSType {
388398
;;
389399
esac
390400
;;
391-
401+
"Amazon Linux")
402+
case "$2" in
403+
"2023")
404+
echo "dnf"
405+
;;
406+
esac
407+
;;
392408
"RED OS")
393409
case "$2" in
394410
"7.3")

0 commit comments

Comments
 (0)