From bc52bec634bfdda6bddb6b23c233df27265c01e2 Mon Sep 17 00:00:00 2001 From: Yossi Date: Mon, 11 Dec 2017 12:41:51 +0200 Subject: [PATCH] Add cleaner cronJob --- stage2/01-sys-tweaks/01-run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index ee6a79e..623b435 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -388,6 +388,13 @@ cd /home/Cardigan/dride-ws sudo npm i --production +# setup clear cron job +crontab -l > cleanerJob +echo "* * * * * node /home/Cardigan/modules/video/helpers/cleaner.js" >> cleanerJob +#install new cron file +crontab cleanerJob +rm cleanerJob + echo "========== Install Indicators ============" echo "# Needed for SPI LED" >> /boot/config.txt