SPECS: smokeping.spec - added trigger for upgrading from smokeping < 2.4.2-...

gotar gotar at pld-linux.org
Sun Feb 15 15:08:10 CET 2009


Author: gotar                        Date: Sun Feb 15 14:08:10 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added trigger for upgrading from smokeping < 2.4.2-3 - rrd files and dirs
  owned by root would not be accessible by daemon working as smokeping user

---- Files affected:
SPECS:
   smokeping.spec (1.58 -> 1.59) 

---- Diffs:

================================================================
Index: SPECS/smokeping.spec
diff -u SPECS/smokeping.spec:1.58 SPECS/smokeping.spec:1.59
--- SPECS/smokeping.spec:1.58	Sun Feb 15 14:36:15 2009
+++ SPECS/smokeping.spec	Sun Feb 15 15:08:04 2009
@@ -23,6 +23,7 @@
 BuildRequires:	sed >= 4.0
 Requires(post):	sed >= 4.0
 Requires(post,preun):	/sbin/chkconfig
+Requires(post):	findutils
 Requires:	rc-scripts
 Requires:	rrdtool >= 1.2
 Suggests:	fping
@@ -194,6 +195,10 @@
 The CGI program is available as %{name}-cgi package.
 EOF
 
+%triggerpostun -- %{name} < 2.4.2-3
+find /var/lib/smokeping/rrd -type f -user root -group root -name \*.rrd -mtime -7 -exec chown smokeping \{\} \;
+find /var/lib/smokeping/rrd -type d -user root -group root -exec chown smokeping \{\} \;
+
 %files
 %defattr(644,root,root,755)
 %doc CHANGES CONTRIBUTORS COPYRIGHT README TODO doc/*.html doc/*.txt doc/Config doc/Smokeping doc/examples
@@ -243,6 +248,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.59  2009/02/15 14:08:04  gotar
+- added trigger for upgrading from smokeping < 2.4.2-3 - rrd files and dirs
+  owned by root would not be accessible by daemon working as smokeping user
+
 Revision 1.58  2009/02/15 13:36:15  gotar
 - fping probe is just most common, but not required, so changed R to S and
   added %banner on how to use it
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/smokeping.spec?r1=1.58&r2=1.59&f=u



More information about the pld-cvs-commit mailing list