Merge branch 'ent-7113-warning-ejecucion-erronea-pandora_server' into 'develop'

Fixed issue with execution without correct params

Closes pandora_enterprise#7113

See merge request artica/pandorafms!3989
This commit is contained in:
Daniel Rodriguez 2021-05-10 08:53:21 +00:00
commit c6068a8544
1 changed files with 3 additions and 3 deletions

View File

@ -117,9 +117,9 @@ sub pandora_init {
($pa_config->{"pandora_path"} = $parametro);
}
}
if ($pa_config->{"pandora_path"} eq ""){
print " [ERROR] I need at least one parameter: Complete path to " . pandora_get_initial_product_name() . " configuration file. \n";
print " For example: ./pandora_server /etc/pandora/pandora_server.conf \n\n";
if (!defined ($pa_config->{"pandora_path"}) || $pa_config->{"pandora_path"} eq ""){
print "[ERROR] I need at least one parameter: Complete path to " . pandora_get_initial_product_name() . " configuration file. \n";
print "For example: ./pandora_server /etc/pandora/pandora_server.conf \n\n";
exit;
}
}