bundles/vnstat: rework bundle
This commit is contained in:
parent
9c8523ab49
commit
f790e2cee0
5 changed files with 48 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue