Skip to content

Commit 3c5c2dc

Browse files
committed
Change mode of the logfiles to make them readable by the ispconfig interface user.
1 parent 82ca275 commit 3c5c2dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,14 @@ public function install_ispconfig()
815815

816816
//set the fast cgi starter script to executable
817817
exec('chmod 755 '.$install_dir.'/interface/bin/php-fcgi');
818+
819+
//* Make the logs readable for the ispconfig user
820+
if(@is_file('/var/log/mail.log')) exec('chmod +r /var/log/mail.log');
821+
if(@is_file('/var/log/mail.warn')) exec('chmod +r /var/log/mail.warn');
822+
if(@is_file('/var/log/mail.err')) exec('chmod +r /var/log/mail.err');
823+
if(@is_file('/var/log/messages')) exec('chmod +r /var/log/messages');
824+
825+
818826
}
819827

820828
public function configure_dbserver()

0 commit comments

Comments
 (0)