summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-06-06 16:02:21 +0200
committerSimo Sorce <simo@redhat.com>2014-06-06 11:55:48 -0400
commit479cdde64e7f7d37cb59af82747abfe5707db619 (patch)
treec353f4e55891bf67f990ac9890764eaf28e4eb53
parent3ea693bb5fe34ab3b11a7c408a2bd408c2a2c6d3 (diff)
downloadipsilon-479cdde64e7f7d37cb59af82747abfe5707db619.tar.gz
ipsilon-479cdde64e7f7d37cb59af82747abfe5707db619.tar.xz
ipsilon-479cdde64e7f7d37cb59af82747abfe5707db619.zip
If there are some errors while semanaging, we want to see them.
Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
-rw-r--r--contrib/fedora/ipsilon.spec8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/fedora/ipsilon.spec b/contrib/fedora/ipsilon.spec
index 79922d9..74add2f 100644
--- a/contrib/fedora/ipsilon.spec
+++ b/contrib/fedora/ipsilon.spec
@@ -65,13 +65,13 @@ getent passwd ipsilon >/dev/null || \
exit 0
%post
-semanage fcontext -a -t httpd_var_lib_t '%{_sharedstatedir}/ipsilon(/.*)?' 2>/dev/null || :
-semanage fcontext -a -t var_lib_t '%{_sharedstatedir}/ipsilon(/.*)/*.conf' 2>/dev/null || :
+semanage fcontext -a -t httpd_var_lib_t '%{_sharedstatedir}/ipsilon(/.*)?' || :
+semanage fcontext -a -t var_lib_t '%{_sharedstatedir}/ipsilon(/.*)/*.conf' || :
restorecon -R %{_sharedstatedir}/ipsilon || :
%postun
-semanage fcontext -d -t var_lib_t '%{_sharedstatedir}/ipsilon(/.*)/*.conf' 2>/dev/null || :
-semanage fcontext -d -t httpd_var_lib_t '%{_sharedstatedir}/ipsilon(/.*)?' 2>/dev/null || :
+semanage fcontext -d -t var_lib_t '%{_sharedstatedir}/ipsilon(/.*)/*.conf' || :
+semanage fcontext -d -t httpd_var_lib_t '%{_sharedstatedir}/ipsilon(/.*)?' || :
%files
%{_defaultdocdir}/%{name}-%{version}