mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Fix cron for bypass and vnstat
This commit is contained in:
parent
fb08bf8d91
commit
2a9574565b
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ if [ "$(uci -q get omr-bypass.lesnumeriques)" = "" ]; then
|
|||
EOF
|
||||
fi
|
||||
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep bypass)" = "" ]; then
|
||||
echo "'0 2 * * * /etc/init.d/omr-bypass bypass_asn\n" > /etc/crontabs/root
|
||||
echo "0 2 * * * /etc/init.d/omr-bypass bypass_asn" >> /etc/crontabs/root
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
|
|
@ -30,7 +30,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
|
|||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep vnstat)" = "" ]; then
|
||||
echo "0 */2 * * * /etc/init.d/vnstat_backup backup\n" >> /etc/crontabs/root
|
||||
echo "0 */2 * * * /etc/init.d/vnstat_backup backup" >> /etc/crontabs/root
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue