mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Added filter to get_bad_conf_files when is a srv conf file. Ticket #4163
(cherry picked from commit a376105f971e65e52ac8d7d6afffb3742d4dbff2)
This commit is contained in:
parent
527de7b0b3
commit
7c20bf405c
@ -3716,6 +3716,7 @@ sub cli_get_bad_conf_files() {
|
||||
my $missings = 0;
|
||||
my @tokens = ("server_ip","server_path","temporal","logfile");
|
||||
|
||||
if ($file !~ /.srv./) {
|
||||
foreach my $token (@tokens) {
|
||||
if(enterprise_hook('pandora_check_conf_token',[$conf->{incomingdir}.'/conf/'.$file, $token]) == 0) {
|
||||
$missings++;
|
||||
@ -3728,6 +3729,7 @@ sub cli_get_bad_conf_files() {
|
||||
$bad_files++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($bad_files == 0) {
|
||||
print_log "[INFO] No bad files found\n\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user