1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix crontab

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-11-07 22:38:51 +01:00
parent 9a905218c8
commit f2ad6afca4
2 changed files with 6 additions and 3 deletions

View file

@ -82,6 +82,8 @@ if [ "$(uci -q get omr-bypass.lesnumeriques)" = "" ]; then
commit omr-bypass
EOF
fi
echo '0 2 * * * /etc/init.d/omr-bypass bypass_asn' > /etc/crontabs/bypass
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
fi
rm -f /tmp/luci-indexcache
exit 0

View file

@ -29,7 +29,8 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
fi
fi
rm -f /tmp/luci-indexcache
rm -f /etc/crontabs/vnstat
echo '0 */2 * * * /etc/init.d/vnstat_backup backup' > /etc/crontabs/vnstat
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
fi
exit 0