Merge branch 'ent-8087-agente-757-crea-badxml-en-modo-debug-windows' into 'develop'

Do not execute omnishell commands in debug mode.

Closes pandora_enterprise#8087

See merge request artica/pandorafms!4475
This commit is contained in:
Daniel Rodriguez 2021-10-18 11:34:46 +00:00
commit e0acd008e2

View File

@ -2047,8 +2047,6 @@ Pandora_Windows_Service::pandora_run (int forced_run) {
this->pandora_init (); this->pandora_init ();
} }
this->checkCollections (); this->checkCollections ();
}
/* Execute omnishell commands */ /* Execute omnishell commands */
omnishell_path = '"'+Pandora::getPandoraInstallDir (); omnishell_path = '"'+Pandora::getPandoraInstallDir ();
@ -2057,6 +2055,7 @@ Pandora_Windows_Service::pandora_run (int forced_run) {
pandoraLog ("Omnishell: Running"); pandoraLog ("Omnishell: Running");
} }
omnishell_output = getValueFromCmdExec(omnishell_path.c_str(), 6000000); omnishell_output = getValueFromCmdExec(omnishell_path.c_str(), 6000000);
}
server_addr = conf->getValue ("server_ip"); server_addr = conf->getValue ("server_ip");