nfs-ganesha 2.5.3, fix semanage in %post

This commit is contained in:
Kaleb S. KEITHLEY 2017-10-20 12:47:58 -04:00
parent a98844adc4
commit 1dc8241f13
1 changed files with 5 additions and 8 deletions

View File

@ -94,7 +94,7 @@ Requires: openSUSE-release
Name: nfs-ganesha
Version: 2.5.3
Release: 1%{?dev:%{dev}}%{?dist}
Release: 2%{?dev:%{dev}}%{?dist}
Summary: NFS-Ganesha is a NFS Server running in user space
Group: Applications/System
License: LGPLv3+
@ -490,6 +490,7 @@ make DESTDIR=%{buildroot} install
%post
%if ( 0%{?suse_version} )
%service_add_post nfs-ganesha.service nfs-ganesha-lock.service nfs-ganesha-config.service
%else
%if ( 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log
@ -498,13 +499,6 @@ semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha-
%endif
restorecon %{_localstatedir}/log/ganesha
%endif
%else
%if ( 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha-gfapi.log
restorecon %{_localstatedir}/log/ganesha
%endif
%if %{with_systemd}
%systemd_post nfs-ganesha.service
%systemd_post nfs-ganesha-lock.service
@ -714,6 +708,9 @@ exit 0
%endif
%changelog
* Fri Oct 20 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.5.3-2
- nfs-ganesha 2.5.3, fix semanage in %%post
* Tue Oct 10 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.5.3-1
- nfs-ganesha 2.5.3 GA