diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-07-24 05:54:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-07-24 05:54:52 +0000 |
commit | eae5a97ad355d202a877953eadcc20e012ceb08c (patch) | |
tree | 1cce2b7f79e46bbd4c25070496b421aa58429586 /net-analyzer/vnstat/files | |
parent | Moving auto* out of RDEPEND. (diff) | |
download | historical-eae5a97ad355d202a877953eadcc20e012ceb08c.tar.gz historical-eae5a97ad355d202a877953eadcc20e012ceb08c.tar.bz2 historical-eae5a97ad355d202a877953eadcc20e012ceb08c.zip |
install crontab into /etc/cron.d instead
Diffstat (limited to 'net-analyzer/vnstat/files')
-rw-r--r-- | net-analyzer/vnstat/files/vnstat.cron | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net-analyzer/vnstat/files/vnstat.cron b/net-analyzer/vnstat/files/vnstat.cron index 716405fe50c8..9315bcefc5df 100644 --- a/net-analyzer/vnstat/files/vnstat.cron +++ b/net-analyzer/vnstat/files/vnstat.cron @@ -1,8 +1,6 @@ #!/bin/bash -# uncomment this line to enable this cron script -exit 0 - -if [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ] ; then +# run vnstat if installed and at least one database exists +if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ] ; then exec /usr/bin/vnstat -u fi |