Modified Config.pm to read remote_config tokens and temporal

This commit is contained in:
fermin831 2015-10-15 11:51:09 +02:00
parent 03a444ad08
commit 3a0ec7ace5
1 changed files with 15 additions and 0 deletions

View File

@ -397,6 +397,9 @@ sub pandora_load_config {
# Remote config server options
$pa_config->{"remote_config_opts"} = ''; # 6.0
# Temp path for file sendinn and receiving
$pa_config->{"temporal"} = '/tmp'; # 6.0
# Check for UID0
if ($pa_config->{"quiet"} != 0){
@ -871,6 +874,18 @@ sub pandora_load_config {
elsif ($parametro =~ m/^remote_config\s+([0-9]*)/i) {
$pa_config->{'remote_config'}= clean_blank($1);
}
elsif ($parametro =~ m/^remote_config_address\s(.*)/i) {
$pa_config->{'remote_config_address'}= clean_blank($1);
}
elsif ($parametro =~ m/^remote_config_port\s+([0-9]*)/i) {
$pa_config->{'remote_config_port'}= clean_blank($1);
}
elsif ($parametro =~ m/^remote_config_opts\s(.*)/i) {
$pa_config->{'remote_config_opts'}= clean_blank($1);
}
elsif ($parametro =~ m/^temporal\s(.*)/i) {
$pa_config->{'temporal'}= clean_blank($1);
}
} # end of loop for parameter #
# Set to RDBMS' standard port