From d2abf3d27bc3aa4cde19ed3e40076683adf144a4 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 2 Apr 2021 10:33:57 +0200 Subject: [PATCH] Add scheduled sync off feeds --- web/run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/run.sh b/web/run.sh index d73a8b1..c6c20a2 100755 --- a/web/run.sh +++ b/web/run.sh @@ -120,8 +120,12 @@ __WELCOME__ #Add crontab to sync data from remote servers service cron start + + ##Schedule to sync all servers every hour { crontab -l 2>/dev/null || true; echo "0 * * * * /var/www/MISP/app/Console/cake Server pullAll 2 full"; } | crontab - - + + ##Schedule to fetch all feeds at 1 am + { crontab -l 2>/dev/null || true; echo "0 1 * * * /var/www/MISP/app/Console/cake Server fetchFeed 2 all"; } | crontab - rm -f /.firstboot.tmp fi