aboutsummaryrefslogtreecommitdiff
path: root/network/vnstat/README
diff options
context:
space:
mode:
Diffstat (limited to 'network/vnstat/README')
-rw-r--r--network/vnstat/README3
1 files changed, 1 insertions, 2 deletions
diff --git a/network/vnstat/README b/network/vnstat/README
index f7fbb85607f83..a22949bbfb05e 100644
--- a/network/vnstat/README
+++ b/network/vnstat/README
@@ -7,5 +7,4 @@ This program is open source (GPL) and can be installed in 'single' and
'root' mode.
Add the following line to your crontab:
-0-55/5 * * * * root if [ -x /usr/bin/vnstat ] && \
-[ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi
+0-55/5 * * * * if [[ -x /usr/bin/vnstat && $(ls /var/lib/vnstat/ | wc -l) -ge 1 ]]; then /usr/bin/vnstat -u; fi