From: Bill Erickson Date: Thu, 12 Jan 2017 15:44:41 +0000 (-0500) Subject: JBAS-1437 Backstage processor -d db-host X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6c8243fed1638c7c37f78ee4d5e97d075f2a6c4c;p=working%2FEvergreen.git 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 --- 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;;