Author: baggins                      Date: Mon Mar 16 16:41:36 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- trigger for upgrading from pre-webapps version

---- Files affected:
SPECS:
   munin.spec (1.65 -> 1.66) 

---- Diffs:

================================================================
Index: SPECS/munin.spec
diff -u SPECS/munin.spec:1.65 SPECS/munin.spec:1.66
--- SPECS/munin.spec:1.65       Mon Mar 16 17:16:32 2009
+++ SPECS/munin.spec    Mon Mar 16 17:41:31 2009
@@ -178,6 +178,21 @@
 %triggerun -- lighttpd
 %webapp_unregister lighttpd %{_webapp}
 
+%triggerpostun -- munin < 1.3.4-5
+# rescue app config
+if [ -f /etc/munin/munin.conf.rpmsave ]; then
+       mv -f %{_webapps}/%{_webapp}/munin.conf{,.rpmnew}
+       mv -f /etc/munin/munin.rpmsave %{_sysconfdir}/munin.conf
+fi
+# move RRDs to new location
+cd /var/lib/munin
+for i in * ; do
+       case "$i" in
+               db|html|plugin-state) ;;
+               *) mv -f "$i" db/ ;;
+       esac
+done
+
 %post node
 if [ "$1" = "1" ] ; then
        /sbin/chkconfig --add munin-node
@@ -272,6 +287,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.66  2009/03/16 16:41:31  baggins
+- trigger for upgrading from pre-webapps version
+
 Revision 1.65  2009/03/16 16:16:32  baggins
 - fix template dir ownership
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/munin.spec?r1=1.65&r2=1.66&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to