From 6c8243fed1638c7c37f78ee4d5e97d075f2a6c4c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 12 Jan 2017 10:44:41 -0500 Subject: [PATCH] JBAS-1437 Backstage processor -d db-host Make it easy to override the PGHOST parameter from within the Backstage processor. This way we don't have to modify and reset the value from within CRON when we want to use a DB host that is not the system default. Signed-off-by: Bill Erickson --- KCLS/authority-control/backstage/backstage-agent.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/KCLS/authority-control/backstage/backstage-agent.sh b/KCLS/authority-control/backstage/backstage-agent.sh index b9fa3af469..b069f94fa1 100755 --- a/KCLS/authority-control/backstage/backstage-agent.sh +++ b/KCLS/authority-control/backstage/backstage-agent.sh @@ -221,6 +221,9 @@ function usage { $0 Options + -d - overrides global PGHOST for this script. + MAKE THIS THE FIRST SCRIPT PARAMETER IF SET. + -a Import monthly authority update file. -b Create and upload quarterly bib export @@ -232,8 +235,9 @@ USAGE } -while getopts "abqh" opt; do +while getopts "abqhd:" opt; do case $opt in + d) export PGHOST=$OPTARG;; a) bs_import_monthly_auths;; q) bs_import_qtrly_results;; b) bs_export_qtrly_bibs;; -- 2.11.0