mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed issue with execution without correct params
This commit is contained in:
parent
321fc8aa05
commit
14b364baec
@ -117,9 +117,9 @@ sub pandora_init {
|
|||||||
($pa_config->{"pandora_path"} = $parametro);
|
($pa_config->{"pandora_path"} = $parametro);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($pa_config->{"pandora_path"} eq ""){
|
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 "[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";
|
print "For example: ./pandora_server /etc/pandora/pandora_server.conf \n\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user