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