From dae3b41faee2777046b0b612e2bd8b28caf0f189 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 19 Jul 2012 08:07:53 +0000
Subject: [PATCH] Fixed a warning in cron log on non web servers.

---
 server/cron_daily.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/cron_daily.php b/server/cron_daily.php
index d02daf8b68..ec8b13e88b 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -257,7 +257,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1'.$aliasdomain.'"';
 // Make the web logfiles directories world readable to enable ftp access
 #######################################################################################################
 
-exec('chmod +r /var/log/ispconfig/httpd/*');
+if(is_dir('/var/log/ispconfig/httpd')) exec('chmod +r /var/log/ispconfig/httpd/*');
 
 #######################################################################################################
 // Manage and compress web logfiles and create traffic statistics
-- 
GitLab