File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1204,11 +1204,11 @@ function _getLogData($log){
12041204 break ;
12051205 case 'log_freshclam ' :
12061206 if ($ dist == 'debian ' ) $ logfile = '/var/log/clamav/freshclam.log ' ;
1207- if ($ dist == 'redhat ' ) $ logfile = '/var/log/freshclam.log ' ;
1207+ if ($ dist == 'redhat ' ) $ logfile = ( is_file ( '/var/log/clamav/ freshclam.log ' ) ? ' /var/log/clamav/freshclam.log ' : ' /var/log/freshclam.log ' ) ;
12081208 break ;
12091209 case 'log_clamav ' :
12101210 if ($ dist == 'debian ' ) $ logfile = '/var/log/clamav/clamav.log ' ;
1211- if ($ dist == 'redhat ' ) $ logfile = '/var/log/maillog ' ;
1211+ if ($ dist == 'redhat ' ) $ logfile = ( is_file ( '/var/log/clamav/clamd.log ' ) ? ' /var/log/clamav/clamd.log ' : ' /var/log/ maillog ') ;
12121212 break ;
12131213 case 'log_fail2ban ' :
12141214 if ($ dist == 'debian ' ) $ logfile = '/var/log/fail2ban.log ' ;
You can’t perform that action at this time.
0 commit comments