jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [diskio/] [update] - Rev 13 Go to most recent revision

Compare with Previous - Blame - Download


#!/usr/bin/env sh

. ../../settings

FIRSTFILE=`ls rrd/|head -n 1`

if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c ABSOLUTE` -gt 0 ]; then

  echo "old-style databases found, update necessary.";

# update databases if needed
#
  FILES=`ls rrd`
  for nn in $FILES; do
    echo "updating $nn"
    $BINPATH/rrdtool tune rrd/$nn -d racc:COUNTER -d wacc:COUNTER -d rbyt:COUNTER -d wbyt:COUNTER
    done
  fi


if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep max|grep -c NaN` -gt 0 ]; then

  echo "old-style databases found, update necessary.";

# update databases if needed
#
  FILES=`ls rrd`
  for nn in $FILES; do
    echo "updating $nn"
    $BINPATH/rrdtool tune rrd/$nn -a racc:50000 -a wacc:50000 -a rbyt:50000000 -a wbyt:50000000
    done
  fi

echo "rebuilding webpage..."
cd ../..
./makeindex.pl


Powered by WebSVN 2.2.1