0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-06 14:35:32 +00:00

Fix conditional for Amazon Linux 2023 in repoconfig spec file. ()

In Amazon Linux 2 the macros centos_ver, amzn2 and amzn are defined.
Amazon Linux 2023 defines fedora, amzn2023 and amzn.
This commit is contained in:
Paul Szymanski 2024-03-29 06:27:18 -05:00 committed by GitHub
parent ec01c7665c
commit a43d435c26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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