jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [packets/] [update] - Blame information for rev 36

 

Line No. Rev Author Line
131simandl#!/usr/bin/env sh
2 
3. ../../settings
4 
5FIRSTFILE=`ls rrd/|head -n 1`
6 
7if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c ABSOLUTE` -gt 0 ]; then
8 
9 echo "old-style databases found, update necessary.";
10 
11# update databases if needed
12#
13 FILES=`ls rrd`
14 for nn in $FILES; do
15 echo "updating $nn"
16 $BINPATH/rrdtool tune rrd/$nn -d in:COUNTER -d out:COUNTER
17 done
18 fi
19 
20# recompile read-data.pl if needed
21#
22if [ read-data.pl -nt read-data ]; then
23 echo "script update detected, recompiling..."
24 rm -f read-data
25 perlcc read-data.pl
26 fi
27 

Powered by WebSVN 2.2.1