|
|
@ -171,7 +171,7 @@ find -type f -exec sed -i -e '1s,^#!/usr/bin/python *,#!/usr/bin/python%{python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
cp -p files/fail2ban.service %{buildroot}%{_unitdir}/
|
|
|
|
cp -p build/fail2ban.service %{buildroot}%{_unitdir}/
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
mkdir -p %{buildroot}%{_initddir}
|
|
|
|
mkdir -p %{buildroot}%{_initddir}
|
|
|
|
install -p -m 755 files/redhat-initd %{buildroot}%{_initddir}/fail2ban
|
|
|
|
install -p -m 755 files/redhat-initd %{buildroot}%{_initddir}/fail2ban
|
|
|
|