From: erickson Date: Mon, 14 Dec 2009 20:50:42 +0000 (+0000) Subject: removed oils_header.pl dependency from action_trigger_runner X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3138e98d4ee54c831c07366f546a4589b20f6cdb;p=working%2FEvergreen.git removed oils_header.pl dependency from action_trigger_runner git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15159 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/action_trigger_runner.pl b/Open-ILS/src/support-scripts/action_trigger_runner.pl index 3b5ac6219b..5ba949234f 100755 --- a/Open-ILS/src/support-scripts/action_trigger_runner.pl +++ b/Open-ILS/src/support-scripts/action_trigger_runner.pl @@ -16,10 +16,11 @@ use strict; use warnings; use Getopt::Long; +use OpenSRF::System; use OpenSRF::AppSession; use OpenSRF::Utils::JSON; use OpenSRF::EX qw(:try); -require 'oils_header.pl'; +use OpenILS::Utils::Fieldmapper; my $opt_lockfile = '/tmp/action-trigger-LOCK'; my $opt_osrf_config = '/openils/conf/opensrf_core.xml'; @@ -153,7 +154,8 @@ print F $$; close F; try { - osrf_connect($opt_osrf_config); + OpenSRF::System->bootstrap_client(config_file => $opt_osrf_config); + Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL")); process_hooks(); run_pending(); } otherwise {