[dovecot/f14/master] - add full path and check to restorecon in post
Michal Hlavinka
mhlavink at fedoraproject.org
Mon Dec 20 12:22:23 UTC 2010
commit 39f1ed77ade22e45774e18e23952f78590c5982d
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Mon Dec 20 13:22:15 2010 +0100
- add full path and check to restorecon in post
dovecot.spec | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dovecot.spec b/dovecot.spec
index 05509f7..894d5d1 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -247,7 +247,7 @@ fi
install -d -m 0755 -g dovecot -d /var/run/dovecot
install -d -m 0755 -d /var/run/dovecot/empty
install -d -m 0750 -g dovenull /var/run/dovecot/login
-/sbin/restorecon -R /var/run/dovecot
+[ -x /sbin/restorecon ] && /sbin/restorecon -R /var/run/dovecot
exit 0
@@ -398,7 +398,7 @@ make check
%changelog
* Mon Dec 20 2010 Michal Hlavinka <mhlavink at redhat.com> - 1:2.0.8-3
-- add full path to restorecon in post
+- add full path and check to restorecon in post
* Tue Dec 07 2010 Michal Hlavinka <mhlavink at redhat.com> - 1:2.0.8-2
- fix s/foobar/dovecot/ typo in post script
More information about the scm-commits
mailing list