use sudo for cleaning files

This commit is contained in:
Yossi 2018-02-26 19:55:18 +02:00
parent 23b2c929a2
commit b891b23741

View File

@ -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