Skip to content

Commit 41f5eb1

Browse files
(PA-5583) Add Amazon Linux 2023 (Intel and ARM)
1 parent 5cf8dcd commit 41f5eb1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,12 @@ case $platform in
837837
"Amzn"|"Amazon Linux")
838838
info "Amazon platform! Lets get you an RPM..."
839839
filetype="rpm"
840-
filename="${collection}-release-el-${platform_version}.noarch.rpm"
840+
platform_package="el"
841+
# For Amazon Linux 2023 and onwards we can use the 'amazon' packages created instead of 'el' packages
842+
if (( $platform_version >= 2023 )); then
843+
platform_package="amazon"
844+
fi
845+
filename="${collection}-release-${platform_package}-${platform_version}.noarch.rpm"
841846
download_url="${yum_source}/${filename}"
842847
;;
843848
"Fedora")

0 commit comments

Comments
 (0)