Skip to content

Commit

Permalink
github: fix failure on AmazonLinux 2023
Browse files Browse the repository at this point in the history
EPEL is not supported in AmazonLinux 2023.

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Dec 8, 2023
1 parent 0ec852d commit 18fc605
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions fluent-package/yum/systemd-test/update-to-next-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ systemctl status --no-pager fluentd
# Make a dummy pacakge for the next version
case $distribution in
amazon)
sudo amazon-linux-extras install -y epel
case $version in
2023)
curl -L -o rpmrebuild.noarch.rpm https://sourceforge.net/projects/rpmrebuild/files/latest/download
sudo $DNF install -y ./rpmrebuild.noarch.rpm
;;
2)
sudo amazon-linux-extras install -y epel
sudo $DNF install -y rpmrebuild
;;
esac
;;
*)
sudo $DNF install -y epel-release
sudo $DNF install -y rpmrebuild
;;
esac
sudo $DNF install -y rpmrebuild
# Example: "1.el9"
release=$(rpmquery --queryformat="%{Release}" -p $package)
# Example: "1"
Expand Down

0 comments on commit 18fc605

Please sign in to comment.