Fixed issue with execution without correct params

This commit is contained in:
Jose Gonzalez 2021-03-31 12:37:02 +02:00
parent 321fc8aa05
commit 14b364baec
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;
}
}