From 3c9736b8c7377ada784d6acd2c018b3771dd6ec3 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 23 Mar 2021 21:37:47 +0100 Subject: [PATCH] Fix crontab installation --- web/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/run.sh b/web/run.sh index dee321c..893734f 100755 --- a/web/run.sh +++ b/web/run.sh @@ -119,8 +119,8 @@ Don't forget: __WELCOME__ #Add crontab to sync data from remote servers - service crontab start - { crontab -l; echo "0 * * * * /var/www/MISP/app/Console/cake Server pullAll 2 update"; } | crontab -l + service cron start + { crontab -l 2>/dev/null || true; echo "0 * * * * /var/www/MISP/app/Console/cake Server pullAll 2 update"; } | crontab - rm -f /.firstboot.tmp fi