my $dsn = $config->param('dsn');
my $db;
my $dsn = $config->param('dsn');
my $db;
-if ($dsn =~ m/DBI:(mysql|pg):/) {
- $db = $1;
+if ($dsn =~ m/DBI:(mysql|pg):/i) {
+ $db = lc($1);
} else {
print STDERR "can't find supported database (mysql/pg) in dsn: $dsn\n";
exit 1;
} else {
print STDERR "can't find supported database (mysql/pg) in dsn: $dsn\n";
exit 1;
+if (! $mnt) {
+ print STDERR "can't mount filesystem!";
+ exit 1;
+}
+
print "Press enter to exit...";
my $foo = <STDIN>;
print "Press enter to exit...";
my $foo = <STDIN>;