use sudo for cleaning files
This commit is contained in:
parent
23b2c929a2
commit
b891b23741
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user