bundles/vnstat: rework bundle

This commit is contained in:
Franzi 2022-12-12 07:56:23 +01:00
parent 9c8523ab49
commit f790e2cee0
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 48 additions and 47 deletions

View file

@ -1,12 +1,8 @@
#!/bin/bash
TARGET=$1
set -xeuo pipefail
if [[ -z "$TARGET" ]]
then
echo "Usage: $0 <TARGET_DIR>"
exit 1
fi
TARGET="/var/www/vnstat"
vnstati --output "$TARGET/summary.png" --summary
vnstati --output "$TARGET/top10.png" --top 10