Merge branch '4261_no_meter_archivos_open' into 'pandora_6.0'

fixed errors

See merge request !65
This commit is contained in:
vgilc 2017-01-20 14:51:42 +01:00
parent 45938463cf
commit 2086eba5c5
1 changed files with 7 additions and 7 deletions

View File

@ -1422,14 +1422,14 @@ sub cli_create_web_module($) {
}
close (FILE);
open (FILE, $conf->{incomingdir}.'/conf/'.md5($agent_name).'.conf');
my @file = <FILE>;
my $conf_file = join("", @file);
close(FILE);
#open (FILE, $conf->{incomingdir}.'/conf/'.md5($agent_name).'.conf');
#my @file = <FILE>;
#my $conf_file = join("", @file);
#close(FILE);
open FILE, "> ".$conf->{incomingdir}.'/conf/'.md5($agent_name).'.conf';
print FILE "$conf_file\n$definition";
close(FILE);
#open FILE, "> ".$conf->{incomingdir}.'/conf/'.md5($agent_name).'.conf';
#print FILE "$conf_file\n$definition";
#close(FILE);
enterprise_hook('pandora_update_md5_file', [$conf, $agent_name]);
}