Don't barf if the SQLite DB is missing

This prevented hydra-init from starting.
This commit is contained in:
Eelco Dolstra 2012-03-19 03:57:11 +00:00
parent 3846c2407d
commit e1768cae86

View file

@ -13,7 +13,7 @@ sub getHydraDBPath {
my $db = $ENV{"HYDRA_DBI"};
return $db if defined $db;
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";
}