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

Fix cron for bypass and vnstat

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-11-21 21:09:46 +01:00
parent fb08bf8d91
commit 2a9574565b
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ if [ "$(uci -q get omr-bypass.lesnumeriques)" = "" ]; then
EOF EOF
fi fi
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep bypass)" = "" ]; then 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 fi
rm -f /tmp/luci-indexcache rm -f /tmp/luci-indexcache
exit 0 exit 0

View file

@ -30,7 +30,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
fi fi
rm -f /tmp/luci-indexcache rm -f /tmp/luci-indexcache
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep vnstat)" = "" ]; then 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 fi
exit 0 exit 0