From 3c5c2dc6c1a1c8789084cd67538680eb08e6e20c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 11 Jul 2008 08:11:53 -0400 Subject: [PATCH] Change mode of the logfiles to make them readable by the ispconfig interface user. --- install/lib/installer_base.lib.php | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 4ccc024..59340a8 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -815,6 +815,14 @@ //set the fast cgi starter script to executable exec('chmod 755 '.$install_dir.'/interface/bin/php-fcgi'); + + //* Make the logs readable for the ispconfig user + if(@is_file('/var/log/mail.log')) exec('chmod +r /var/log/mail.log'); + if(@is_file('/var/log/mail.warn')) exec('chmod +r /var/log/mail.warn'); + if(@is_file('/var/log/mail.err')) exec('chmod +r /var/log/mail.err'); + if(@is_file('/var/log/messages')) exec('chmod +r /var/log/messages'); + + } public function configure_dbserver() -- Gitblit v1.9.1