specify riak url and dsn as arguments
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 13 Nov 2010 22:51:44 +0000 (23:51 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 13 Nov 2010 22:51:44 +0000 (23:51 +0100)
koha/koha2riak-search.pl

index ed6281c..2fb5b4b 100755 (executable)
@@ -6,8 +6,10 @@ use RiakSearch;
 use Data::Dump qw/dump/;
 
 
-my $riak_url = 'http://10.60.0.92:8098';
-my $dbi = 'DBI:mysql:dbname=koha;host=10.60.0.10;port=3306';
+my ( $riak_url, $dbi ) = @ARGV;
+
+$riak_url ||= 'http://10.60.0.92:8098';
+$dbi ||= 'DBI:mysql:dbname=koha;host=10.60.0.10;port=3306';
 my @tables = qw(
 biblioitems
 biblio