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

---
 server/cron_daily.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/cron_daily.php b/server/cron_daily.php
index d02daf8..ec8b13e 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -257,7 +257,7 @@
 // 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

--
Gitblit v1.9.1