Regularly clean up /var/www/tmp directory

This commit is contained in:
Daniel Winzen
2019-04-10 18:29:12 +02:00
parent bdc8b101d0
commit 47c9490c8b

View File

@ -31,3 +31,4 @@ foreach($all as $tmp){
//no data found, safe to delete
$del->execute([substr($tmp[1], 0, 16)]);
}
exec("find /var/www/tmp -path '/var/www/tmp/*' -cmin +1440 -delete");