From b891b23741a3ee06db1465f9212e55289a2e5df2 Mon Sep 17 00:00:00 2001 From: Yossi Date: Mon, 26 Feb 2018 19:55:18 +0200 Subject: [PATCH] use sudo for cleaning files --- stage2/06-dride-base/00-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage2/06-dride-base/00-run.sh b/stage2/06-dride-base/00-run.sh index 818f3b3..a4fede7 100755 --- a/stage2/06-dride-base/00-run.sh +++ b/stage2/06-dride-base/00-run.sh @@ -274,7 +274,7 @@ sudo npm i --production # setup clear cron job crontab -l > cleanerJob -echo "* * * * * node /home/Cardigan/modules/video/helpers/cleaner.js" >> cleanerJob +echo "* * * * * sudo node /home/Cardigan/modules/video/helpers/cleaner.js" >> cleanerJob # install new cron file crontab cleanerJob rm cleanerJob