Skip to content

Commit 196c29c

Browse files
author
vogelor
committed
installer: suppressed a warning, if the log-rotation-file is created the first time
1 parent 76d6e96 commit 196c29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ public function install_ispconfig() {
14131413

14141414
//* Add Log-Rotation
14151415
if (is_dir('/etc/logrotate.d')) {
1416-
unlink('/etc/logrotate.d/logispc3');
1416+
@unlink('/etc/logrotate.d/logispc3'); // ignore, if the file is not there
14171417
$fh = fopen('/etc/logrotate.d/logispc3', 'w');
14181418
fwrite($fh,
14191419
"/var/log/ispconfig/ispconfig.log { \n" .

0 commit comments

Comments
 (0)