bundlewrap/bundles/vnstat/files/generate-vnstati

15 lines
283 B
Plaintext
Raw Normal View History

#!/bin/bash
TARGET=$1
if [[ -z "$TARGET" ]]
then
echo "Usage: $0 <TARGET_DIR>"
exit 1
fi
vnstati --output "$TARGET/daily.png" --days
vnstati --output "$TARGET/monthly.png" --months
vnstati --output "$TARGET/yearly.png" --years
vnstati --output "$TARGET/top10.png" --top10