From e70c9cd218aa7148bd3be6736f3be463abf12942 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 25 Mar 2013 09:10:40 -0400 Subject: [PATCH] Add srfsh script to call action.purge_circulations(). Signed-off-by: Jason Stephenson Signed-off-by: Dan Wells --- Open-ILS/src/Makefile.am | 1 + Open-ILS/src/support-scripts/purge_circulations.srfsh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 Open-ILS/src/support-scripts/purge_circulations.srfsh diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am index d96d1bd2e7..b3432bad6c 100644 --- a/Open-ILS/src/Makefile.am +++ b/Open-ILS/src/Makefile.am @@ -73,6 +73,7 @@ core_scripts = $(examples)/oils_ctl.sh \ $(supportscr)/long-overdue-status-update.pl \ $(supportscr)/action_trigger_runner.pl \ $(supportscr)/purge_holds.srfsh \ + $(supportscr)/purge_circulations.srfsh \ $(srcdir)/extras/eg_config \ $(srcdir)/extras/openurl_map.pl \ $(srcdir)/extras/import/marc_add_ids diff --git a/Open-ILS/src/support-scripts/purge_circulations.srfsh b/Open-ILS/src/support-scripts/purge_circulations.srfsh new file mode 100755 index 0000000000..f1caf76bcc --- /dev/null +++ b/Open-ILS/src/support-scripts/purge_circulations.srfsh @@ -0,0 +1,7 @@ +#!/openils/bin/srfsh +open open-ils.cstore +request open-ils.cstore open-ils.cstore.transaction.begin +request open-ils.cstore open-ils.cstore.json_query {"from":["action.purge_circulations"]} +request open-ils.cstore open-ils.cstore.transaction.commit +close open-ils.cstore + -- 2.11.0