Commit df4917ca authored by Francesc Guasch's avatar Francesc Guasch
Browse files

loads a config by default

parent 60a0fce7
......@@ -25,12 +25,16 @@ use POSIX qw(locale_h);
my $help;
my $FILE_CONFIG;
my $FILE_CONFIG = "/etc/rvd_front.conf";
my $error_file_duplicated = 0;
for my $file ( "/etc/rvd_front.conf" , ($ENV{HOME} or '')."/rvd_front.conf") {
warn "WARNING: Found config file at $_ and at $FILE_CONFIG\n"
warn "WARNING: Found config file at $file and at $FILE_CONFIG\n"
if -e $file && $FILE_CONFIG;
$FILE_CONFIG = $file if -e $file;
$error_file_duplicated++;
}
warn "WARNING: using $FILE_CONFIG\n" if$error_file_duplicated>2;
my $FILE_CONFIG_RAVADA;
for my $file ( "/etc/ravada.conf" , ($ENV{HOME} or '')."/ravada.conf") {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment