X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=text%2Fcsv2sql;h=9ee82035831494930b9895293b0ac134f90133db;hp=37a136d686237e59285fe84588c969c3ee57546c;hb=c9e2deadd0818d7c14c206e5f26b78b8a92085fd;hpb=e2850e245100f5ec46bb4dfa950864e7a44c6731 diff --git a/text/csv2sql b/text/csv2sql index 37a136d..9ee8203 100755 --- a/text/csv2sql +++ b/text/csv2sql @@ -14,11 +14,11 @@ my $cfg; my $csv_config; sub init { - our %config; if ($PGHOST and $PGPORT and $PGUSER and $PGDATABASE) { $dbh = connect_db($PGDATABASE,$PGUSER,undef,$PGHOST) or die $DBI::errstr; } else { + our %config; do '/openils/conf/offline-config.pl'; $dbh = DBI->connect( $config{dsn}, $config{usr}, $config{pw} ) or die $DBI::errstr; }