Skip to content

Commit

Permalink
Merge pull request #18 from NethServer/top_talkers
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed May 8, 2020
2 parents 23f97b9 + c795fb1 commit c68411a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/cron.daily/ntopng-cleanup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# Delete files not updated in the last 30 days
[ -d /var/tmp/ntopng/ ] && /usr/bin/find /var/tmp/ntopng/* -mindepth 1 -type f -mtime +30 -delete > /dev/null
[ -d /var/tmp/ntopng/ ] && /usr/bin/find /var/tmp/ntopng/* -mindepth 1 -type f -mtime +30 -delete &> /dev/null
6 changes: 6 additions & 0 deletions root/etc/cron.weekly/ntopng-cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# top_talkers.db grows too much, just clean it once in a while

/usr/bin/find /var/tmp/ntopng/ -name top_talkers.db -delete
/usr/bin/systemctl restart ntopng

0 comments on commit c68411a

Please sign in to comment.