- refresh dw cache on install
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 28 Jan 2009 14:29:13 +0000 (14:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-userpage.spec -> 1.5

dokuwiki-plugin-userpage.spec

index f4be260..a2b7c00 100644 (file)
@@ -13,6 +13,7 @@ Requires:     dokuwiki >= 20061106
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                dokuconf        /etc/webapps/dokuwiki
 %define                dokudir         /usr/share/dokuwiki
 %define                plugindir       %{dokudir}/lib/plugins/%{plugin}
 
@@ -36,6 +37,12 @@ rm $RPM_BUILD_ROOT%{plugindir}/{License.txt,ReadMe.txt}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+# force css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+       touch %{dokuconf}/local.php
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ReadMe.txt
This page took 0.12431 seconds and 4 git commands to generate.