Commit 196c29c2 authored by vogelor's avatar vogelor

installer: suppressed a warning, if the log-rotation-file is created the first time

parent 76d6e96b
......@@ -1413,7 +1413,7 @@ class installer_base {
//* Add Log-Rotation
if (is_dir('/etc/logrotate.d')) {
unlink('/etc/logrotate.d/logispc3');
@unlink('/etc/logrotate.d/logispc3'); // ignore, if the file is not there
$fh = fopen('/etc/logrotate.d/logispc3', 'w');
fwrite($fh,
"/var/log/ispconfig/ispconfig.log { \n" .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment