forked from lix-project/hydra
Don't barf if the SQLite DB is missing
This prevented hydra-init from starting.
This commit is contained in:
parent
3846c2407d
commit
e1768cae86
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ sub getHydraDBPath {
|
||||||
my $db = $ENV{"HYDRA_DBI"};
|
my $db = $ENV{"HYDRA_DBI"};
|
||||||
return $db if defined $db;
|
return $db if defined $db;
|
||||||
my $path = getHydraPath . '/hydra.sqlite';
|
my $path = getHydraPath . '/hydra.sqlite';
|
||||||
die "The Hydra database ($path) not exist!\n" unless -f $path;
|
#warn "The Hydra database ($path) does not exist!\n" unless -f $path;
|
||||||
return "dbi:SQLite:$path";
|
return "dbi:SQLite:$path";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue