Skip to content
Snippets Groups Projects
Commit 33b359d4 authored by Till Brehm's avatar Till Brehm
Browse files

Update 200-logfiles.inc.php

parent 34699f4b
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class cronjob_logfiles extends cronjob {
if(is_file($ispconfig_logfile . '.' . $num . '.gz')) rename($ispconfig_logfile . '.' . $num . '.gz', $ispconfig_logfile . '.' . ($num + 1) . '.gz');
$num--;
}
// compress current logfile
//* compress current logfile
if(is_file($ispconfig_logfile)) {
$app->system->exec_safe("gzip -c ? > ?", $ispconfig_logfile, $ispconfig_logfile . '.1.gz');
$app->system->exec_safe("cat /dev/null > ?", $ispconfig_logfile);
......
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