[websvn] fix path in selinux scriptlet

Xavier Bachelot xavierb at fedoraproject.org
Mon Sep 27 22:13:35 UTC 2010


commit 6e8e6dac59d4efa0c0f8cabc15ff8a767c2d66bc
Author: Xavier Bachelot <xavier at bachelot.org>
Date:   Tue Sep 28 00:13:32 2010 +0200

    fix path in selinux scriptlet

 websvn.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/websvn.spec b/websvn.spec
index 63b5a00..e6f2a82 100644
--- a/websvn.spec
+++ b/websvn.spec
@@ -98,13 +98,13 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %post selinux
-semanage fcontext -a -t httpd_cache_t '%{_localstatedir}/%{name}(/.*)?' 2>/dev/null || :
+semanage fcontext -a -t httpd_cache_t '%{_localstatedir}/cache/%{name}(/.*)?' 2>/dev/null || :
 restorecon -R %{_localstatedir}/cache/%{name} || :
 
 
 %postun selinux
 if [ $1 -eq 0 ] ; then
-semanage fcontext -d -t httpd_cache_t '%{_localstatedir}/%{name}(/.*)?' 2>/dev/null || :
+semanage fcontext -d -t httpd_cache_t '%{_localstatedir}/cache/%{name}(/.*)?' 2>/dev/null || :
 fi
 
 


More information about the scm-commits mailing list