Project

General

Profile

« Previous | Next » 

Revision 6587e2af

Added by Robert Nelson over 10 years ago

Only initialize package's log if it doesn't exist

View differences:

etc/inc/system.inc
838 838
			foreach ($config['installedpackages']['package'] as $package) {
839 839
				if ($package['logging']) {
840 840
					array_push($separatelogfacilities, $package['logging']['facilityname']);
841
					mwexec("{$log_create_directive} {$log_size} {$g['varlog_path']}/{$package['logging']['logfilename']}");
841
					if (!is_file($g['varlog_path'].'/'.$package['logging']['logfilename']))
842
						mwexec("{$log_create_directive} {$log_size} {$g['varlog_path']}/{$package['logging']['logfilename']}");
842 843
					$syslogconf .= "!{$package['logging']['facilityname']}\n*.*\t\t\t\t\t\t {$log_directive}{$g['varlog_path']}/{$package['logging']['logfilename']}\n";
843 844
				}
844 845
			}

Also available in: Unified diff