From 18fc6059b83792c6f649108fd9d970afeb0c8ed6 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Fri, 8 Dec 2023 16:35:28 +0900 Subject: [PATCH] github: fix failure on AmazonLinux 2023 EPEL is not supported in AmazonLinux 2023. Signed-off-by: Kentaro Hayashi --- .../yum/systemd-test/update-to-next-version.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fluent-package/yum/systemd-test/update-to-next-version.sh b/fluent-package/yum/systemd-test/update-to-next-version.sh index 1c0382ff7..aa42de076 100755 --- a/fluent-package/yum/systemd-test/update-to-next-version.sh +++ b/fluent-package/yum/systemd-test/update-to-next-version.sh @@ -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"