From 7c398279b00b3d041342e6b84ce9d781ebb84b7e Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Fri, 16 Mar 2012 15:39:05 +0000 Subject: [PATCH] postinst scripts: update timestamp on imgs,css,js to let apache know the files changed Monotone-Parent: 831fbe8327001cd5d78c09a8787012513b017089 Monotone-Revision: a59a10e4b696e7b04ce4b5dffd0f66574c31525f Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-03-16T15:39:05 --- ChangeLog | 7 +++++++ debian/sogo.postinst | 2 ++ sogo.spec | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2324f4ec9..1468d1e17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-03-16 Jean Raby + + * sogo.spec debian/sogo.postint: upon installation, update timestamp + on WebServerResources/* to let the webserver know the files changed. + Should fix issues where browsers would use a locally cached version + of a resource when the sogo package have just been upgraded. + 2012-03-15 Francis Lachapelle * UI/WebServerResources/generic.js (onPreferencesClick): don't diff --git a/debian/sogo.postinst b/debian/sogo.postinst index 04d66c1fb..e43bfd92a 100644 --- a/debian/sogo.postinst +++ b/debian/sogo.postinst @@ -18,6 +18,8 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin case "$1" in configure) + # update timestamp on imgs,css,js to let apache know the files changed + find /usr/lib/GNUstep/SOGo/WebServerResources -exec touch {} \; ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/sogo.spec b/sogo.spec index 8d6a15105..8be88354e 100644 --- a/sogo.spec +++ b/sogo.spec @@ -289,6 +289,8 @@ if ! id sogo >& /dev/null; then /usr/sbin/adduser sogo > /dev/null 2>&1; fi /bin/chown sogo /var/log/sogo /bin/chown sogo /var/spool/sogo /bin/chmod 700 /var/spool/sogo +# update timestamp on imgs,css,js to let apache know the files changed +find %{_libdir}/GNUstep/SOGo/WebServerResources -exec touch {} \; /sbin/chkconfig --add sogod %preun @@ -309,6 +311,9 @@ fi # ********************************* changelog ************************* %changelog +* Fri Mar 16 2012 Jean Raby +- %post: update timestamp on imgs,css,js to let apache know the files changed + * Fri Feb 16 2012 Jean Raby - Use globbing to include all sql upgrade scripts instead of listing them all