[dovecot] - add full path and check to restorecon in post

Michal Hlavinka mhlavink at fedoraproject.org
Mon Dec 20 12:21:59 UTC 2010


commit 9cbf19474c4e3f2bb8406e9a03a8ce22626a8fe1
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Mon Dec 20 13:21:48 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