EG install scripts: handle translation packages more elegantly
[sitka/sitka-tools.git] / marc_export_custom / sitka-full-export-bslw.sh
index ac249be..e0cb093 100755 (executable)
@@ -1,14 +1,14 @@
 #!/bin/bash
 
-DIR=`dirname $0`
+DIR=$(readlink -f $(dirname $0))
 #cd /srv/openils/bin
 
 PGUSER=evergreen
-PGHOST=db1.sitka.bclibraries.ca
+PGHOST=prod-pg94-db2-sitka.sitka.bclibraries.ca
 PSQL="psql -A -t -U $PGUSER -h $PGHOST"
 DATABASE=evergreen
 FULL_QUERY="select id from biblio.record_entry where not deleted"
-MARC_PARAMS="--config /srv/openils/conf/opensrf_core.xml --timeout 300 --force901 --encoding UTF-8"
+MARC_PARAMS="--config /srv/openils/conf/opensrf_core.xml --timeout 300 --force901 --encoding UTF-8 --quiet"
 MARC_EXPORT_BIN="${DIR}/marc_export_custom"
 MARC_EXPORT="${MARC_EXPORT_BIN} ${MARC_PARAMS}"