corrected configuration files

This commit is contained in:
Nikos Mavrogiannopoulos 2017-02-14 11:12:27 +01:00
parent b5af65c1bb
commit 308a96f5ec

View File

@ -1,6 +1,6 @@
# This spec file has been automatically updated
Version: 0.11.7
Release: 1%{?dist}
Release: 2%{?dist}
%global _hardened_build 1
Name: ocserv
@ -148,6 +148,13 @@ install -p -m 755 %{SOURCE8} %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_bindir}
install -p -m 755 %{SOURCE9} %{buildroot}/%{_bindir}
%if 0%{?rhel}
sed -i 's|expiration_days=-1|expiration_days=9999|' %{buildroot}/%{_sbindir}/ocserv-genkey
sed -i 's|tls-priorities = "@SYSTEM"|tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-VERS-SSL3.0"|' %{buildroot}/%{_sysconfdir}/ocserv/ocserv.conf
%if 0%{?rhel} <= 6
sed -i 's|isolate-workers = true|isolate-workers = false|' %{buildroot}/%{_sysconfdir}/ocserv/ocserv.conf
%endif
%if 0%{?rhel} && 0%{?rhel} <= 6
install -D -m 0755 %{SOURCE8} %{buildroot}/%{_initrddir}/%{name}
%else