Skip to content
Snippets Groups Projects
Commit 54396bab authored by tbrehm's avatar tbrehm
Browse files

Fixed a error message in cron_daily.php

parent c211f7ae
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,7 @@ if(is_array($records)) { ...@@ -245,7 +245,7 @@ if(is_array($records)) {
foreach($records as $rec){ foreach($records as $rec){
$tmp_path = realpath(escapeshellcmd($rec["document_root"].'/tmp')); $tmp_path = realpath(escapeshellcmd($rec["document_root"].'/tmp'));
if($tmp_path != '' && strlen($tmp_path) > 10 && is_dir($tmp_path) && $app->system->is_user($rec['system_user'])){ if($tmp_path != '' && strlen($tmp_path) > 10 && is_dir($tmp_path) && $app->system->is_user($rec['system_user'])){
exec("cd ".$tmp_path."; find -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm &> /dev/null 2> /dev/null"); exec("cd ".$tmp_path."; find -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm > /dev/null 2> /dev/null");
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment