[open-ils-commits] r14635 - tags/rel_1_6_0_0/Open-ILS/src/reporter (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 27 15:06:29 EDT 2009
Author: dbs
Date: 2009-10-27 15:06:24 -0400 (Tue, 27 Oct 2009)
New Revision: 14635
Modified:
tags/rel_1_6_0_0/Open-ILS/src/reporter/find_orphaned_reports.pl
Log:
Update find_orphaned_reports.pl to modern Evergreen (with apologies to chromatic):
* prefer non-deprecated reporter database settings
* use opensrf_core.xml instead of bootstrap.conf
* fix typo (boostrap -> bootstrap)
Modified: tags/rel_1_6_0_0/Open-ILS/src/reporter/find_orphaned_reports.pl
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/src/reporter/find_orphaned_reports.pl 2009-10-27 19:04:18 UTC (rev 14634)
+++ tags/rel_1_6_0_0/Open-ILS/src/reporter/find_orphaned_reports.pl 2009-10-27 19:06:24 UTC (rev 14635)
@@ -10,10 +10,10 @@
use OpenILS::Reporter::SQLBuilder;
use File::Find;
-my ($config, $du, $live, %seen) = ('SYSCONFDIR/bootstrap.conf', 0, 0);
+my ($config, $du, $live, %seen) = ('SYSCONFDIR/opensrf_core.xml', 0, 0);
GetOptions(
- "boostrap=s" => \$config,
+ "bootstrap=s" => \$config,
"du" => \$du,
"live" => \$live,
);
@@ -24,9 +24,9 @@
my $db_driver = $sc->config_value( reporter => setup => database => 'driver' );
my $db_host = $sc->config_value( reporter => setup => database => 'host' );
my $db_port = $sc->config_value( reporter => setup => database => 'port' );
-my $db_name = $sc->config_value( reporter => setup => database => 'name' );
+my $db_name = $sc->config_value( reporter => setup => database => 'db' ) || $sc->config_value( reporter => setup => database => 'name' );
my $db_user = $sc->config_value( reporter => setup => database => 'user' );
-my $db_pw = $sc->config_value( reporter => setup => database => 'password' );
+my $db_pw = $sc->config_value( reporter => setup => database => 'pw' ) || $sc->config_value( reporter => setup => database => 'password' );
my $output_base = $sc->config_value( reporter => setup => files => 'output_base' );
More information about the open-ils-commits
mailing list