Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
54396bab
Commit
54396bab
authored
Jun 29, 2010
by
tbrehm
Browse files
Fixed a error message in cron_daily.php
parent
c211f7ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
54396bab
...
...
@@ -245,7 +245,7 @@ if(is_array($records)) {
foreach
(
$records
as
$rec
){
$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'
])){
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"
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment