Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Helmo
ISPConfig 3
Commits
dc97693e
Commit
dc97693e
authored
May 18, 2018
by
Florian Schaal
Browse files
fixed last commit
parent
f6d3c92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/200-logfiles.inc.php
View file @
dc97693e
...
...
@@ -121,8 +121,8 @@ class cronjob_logfiles extends cronjob {
// rename older files (move up by one)
$num
=
$log_retention
;
while
(
$num
>=
1
&&
is_file
(
$cron_logfile
.
'.'
.
$num
.
'.gz'
)
)
{
rename
(
$cron_logfile
.
'.'
.
$num
.
'.gz'
,
$cron_logfile
.
'.'
.
(
$num
+
1
)
.
'.gz'
);
while
(
$num
>=
1
)
{
if
(
is_file
(
$cron_logfile
.
'.'
.
$num
.
'.gz'
))
rename
(
$cron_logfile
.
'.'
.
$num
.
'.gz'
,
$cron_logfile
.
'.'
.
(
$num
+
1
)
.
'.gz'
);
$num
--
;
}
...
...
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