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. (#17056)
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:
parent
ec01c7665c
commit
a43d435c26
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue