mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Use uci-default to create vnstat backup crontab
This commit is contained in:
parent
1dbe57436b
commit
989092bc8c
1 changed files with 3 additions and 0 deletions
|
@ -22,5 +22,8 @@ if [ "$(uci -q get vnstat.@vnstat[-1].interface | grep wan1)" = "" ]; then
|
|||
fi
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
if [ "$(grep -q vnstat_backup /etc/crontabs/root)" = "" ]; then
|
||||
echo '* */12 * * * /etc/init.d/vnstat_backup backup' >> /etc/crontabs/root
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue