From 196c29c28dae504277c93af9e9a341ecec26baa3 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Tue, 25 May 2010 15:11:55 +0000
Subject: [PATCH] installer: suppressed a warning, if the log-rotation-file is
 created the first time

---
 install/lib/installer_base.lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 2725904869..eba6f5c0be 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -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" .
-- 
GitLab