add the ability to build on fc36 (#1524)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
parent
5fcf47c79f
commit
f1dbe8c9dd
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ BuildRequires: systemd
|
||||||
%{?fc33:BuildRequires: systemd-rpm-macros}
|
%{?fc33:BuildRequires: systemd-rpm-macros}
|
||||||
%{?fc34:BuildRequires: systemd-rpm-macros}
|
%{?fc34:BuildRequires: systemd-rpm-macros}
|
||||||
%{?fc35:BuildRequires: systemd-rpm-macros}
|
%{?fc35:BuildRequires: systemd-rpm-macros}
|
||||||
|
%{?fc36:BuildRequires: systemd-rpm-macros}
|
||||||
|
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
@ -204,7 +205,7 @@ if [ $1 == 1 ]; then
|
||||||
PORT=$(cscli config show --key "Config.API.Server.ListenURI"|cut -d ":" -f2)
|
PORT=$(cscli config show --key "Config.API.Server.ListenURI"|cut -d ":" -f2)
|
||||||
fi
|
fi
|
||||||
if [ "$LAPI" = false ] || [ -z "$(ss -nlt "sport = ${PORT}" | grep -v ^State)" ] ; then
|
if [ "$LAPI" = false ] || [ -z "$(ss -nlt "sport = ${PORT}" | grep -v ^State)" ] ; then
|
||||||
%if 0%{?fc35}
|
%if 0%{?fc35} || 0%{?fc36}
|
||||||
systemctl enable crowdsec
|
systemctl enable crowdsec
|
||||||
%endif
|
%endif
|
||||||
systemctl start crowdsec || echo "crowdsec is not started"
|
systemctl start crowdsec || echo "crowdsec is not started"
|
||||||
|
|
Loading…
Reference in a new issue