From: scheiter Date: Fri, 17 Nov 2006 06:23:15 +0000 (+0000) Subject: Updated gosa.spec, cleans temporary dir up now on update and removal X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1058b00b148709024606a81ac449b5c1a5e69ec1;p=gosa.git Updated gosa.spec, cleans temporary dir up now on update and removal git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5143 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.spec b/contrib/gosa.spec index 1a8d8eb96..287118113 100644 --- a/contrib/gosa.spec +++ b/contrib/gosa.spec @@ -173,6 +173,14 @@ rm -rf %{buildroot} # Add shells file to /etc/gosa /bin/cp /etc/shells /etc/gosa +%pre +# Cleanup compile dir on updates +[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/* + +%postun +# Remove temporary files, just to be sure +rm -rf /var/spool/gosa/ + %files %defattr(-,%{apacheuser},%{apachegroup}) %doc %attr(-,root,root) AUTHORS TODO README README.safemode Changelog COPYING INSTALL FAQ @@ -212,7 +220,9 @@ rm -rf %{buildroot} %changelog * Fri Nov 17 2006 Lars Scheiter 2.5.6 -- New Upstream +- New upstream +- Cleanup temporary dir after package removal +- Cleanup temporary dir before update * Thu Sep 28 2006 Lars Scheiter 2.5.4 - New upstream version