cron is re-writing my delete cache command?
Posted: Mon Jun 03, 2019 5:02 pm
So I am trying to add the following command as a cron job:
The problem is for some reason, vesta is rewriting the command....
so upon saving, instead of the command above, it is saving
Note that user1, user2, user3, user4, user5 are actually the user names of accounts.
This is obviously a problem as when more users are added, they would not be automatically included in the command - because its not saving as /home/*/tmp
Is this a bug? Is there a work around other than updating the cron every time a new user is added?
Code: Select all
find /home/*/tmp -type f -name 'sess_*' -cmin +60 -delete
so upon saving, instead of the command above, it is saving
Code: Select all
find /home/admin/tmp /home/user1/tmp /home/user2/tmp /home/user3/tmp /home/user4/tmp /home/user5/tmp -type f -name 'sess_*' -cmin +60 -delete
This is obviously a problem as when more users are added, they would not be automatically included in the command - because its not saving as /home/*/tmp
Is this a bug? Is there a work around other than updating the cron every time a new user is added?