From a43d435c261d43c003e05ee82ca2de629008eb14 Mon Sep 17 00:00:00 2001 From: Paul Szymanski <519954+PaulSzymanski@users.noreply.github.com> Date: Fri, 29 Mar 2024 06:27:18 -0500 Subject: [PATCH] Fix conditional for Amazon Linux 2023 in repoconfig spec file. (#17056) In Amazon Linux 2 the macros centos_ver, amzn2 and amzn are defined. Amazon Linux 2023 defines fedora, amzn2023 and amzn. --- packaging/repoconfig/netdata-repo.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packaging/repoconfig/netdata-repo.spec b/packaging/repoconfig/netdata-repo.spec index 242178ba71..3c99b921f1 100644 --- a/packaging/repoconfig/netdata-repo.spec +++ b/packaging/repoconfig/netdata-repo.spec @@ -49,21 +49,20 @@ install -pm 644 %{SOURCE3} ./netdata-edge.repo %endif %if 0%{?centos_ver} -# Amazon Linux 2 looks like CentOS, but with extra macros. -%if 0%{?amzn2} -install -pm 644 %{SOURCE8} ./netdata.repo -install -pm 644 %{SOURCE9} ./netdata-edge.repo -%else install -pm 644 %{SOURCE4} ./netdata.repo install -pm 644 %{SOURCE5} ./netdata-edge.repo %endif -%endif %if 0%{?oraclelinux} install -pm 644 %{SOURCE6} ./netdata.repo install -pm 644 %{SOURCE7} ./netdata-edge.repo %endif +%if 0%{?amzn} +install -pm 644 %{SOURCE8} ./netdata.repo +install -pm 644 %{SOURCE9} ./netdata-edge.repo +%endif + %build true