summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfac9ff)
raw | patch | inline | side by side (parent: dfac9ff)
author | scheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Dec 2006 08:45:17 +0000 (08:45 +0000) | ||
committer | scheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Dec 2006 08:45:17 +0000 (08:45 +0000) |
on systems with selinux enabled.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5447 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5447 594d385d-05f5-0310-b6e9-bd551577e9d8
contrib/gosa.spec | patch | blob | history |
diff --git a/contrib/gosa.spec b/contrib/gosa.spec
index 955ec3eae52059f44b796307e777e45a4c207e7b..0ea022d65658b94593ebe91b40ed96b9781ca5e9 100644 (file)
--- a/contrib/gosa.spec
+++ b/contrib/gosa.spec
/bin/cp /etc/shells /etc/gosa
%pre
-# Cleanup compile dir on updates
-[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/*
+# Cleanup compile dir on updates, always exit cleanly even on errors
+[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/* ; exit 0
%postun
# Remove temporary files, just to be sure
-rm -rf /var/spool/gosa/
+[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/ ; exit 0
%files
%defattr(-,%{apacheuser},%{apachegroup})
%changelog
* Wed Dec 20 2006 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.7
- New upstream
+- %pre and %postun always end successfully now, even on errors
* Fri Nov 17 2006 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.6
- New upstream