Commit 5518df67 authored by tbrehm's avatar tbrehm
Browse files

Fixed installer errors:

chmod: cannot access `/var/log/clamav/clamav.log': No such file or directory
chmod: cannot access `/var/log/clamav/freshclam.log': No such file or directory
parent 9e64a7dd
......@@ -1001,10 +1001,6 @@ class installer_base {
// Make the Clamav log files readable by ISPConfig
exec('chmod +r /var/log/clamav/clamav.log');
exec('chmod +r /var/log/clamav/freshclam.log');
//* Install the SVN update script
exec('cp ../helper_scripts/ /usr/local/bin/');
exec('chown root /usr/local/bin/');
......@@ -1015,6 +1011,8 @@ class installer_base {
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');
if(@is_file('/var/log/clamav/clamav.log')) exec('chmod +r /var/log/clamav/clamav.log');
if(@is_file('/var/log/clamav/freshclam.log')) exec('chmod +r /var/log/clamav/freshclam.log');
//* Create the ispconfig log directory
if(!is_dir('/var/log/ispconfig')) mkdir('/var/log/ispconfig');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment