[open-ils-commits] [GIT] Evergreen ILS branch master updated. b59863ee1af8c67e1c16361113cdfa58f5d0b97b
Evergreen Git
git at git.evergreen-ils.org
Tue Nov 7 13:49:01 EST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via b59863ee1af8c67e1c16361113cdfa58f5d0b97b (commit)
from b2788373d4bd1b8125a67b1aa3709f7da8e3108b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b59863ee1af8c67e1c16361113cdfa58f5d0b97b
Author: Ben Shum <ben at evergreener.net>
Date: Tue Nov 7 13:41:56 2017 -0500
LP#1730721: future proof build-db.sh
Use the same logic we've got in eg_db_config for build-db.sh to determine
PostgreSQL version installed on server.
Signed-off-by: Ben Shum <ben at evergreener.net>
Signed-off-by: Jason Stephenson <jason at sigio.com>
diff --git a/Open-ILS/src/sql/Pg/build-db.sh b/Open-ILS/src/sql/Pg/build-db.sh
index 2b3540c..4eb7be0 100755
--- a/Open-ILS/src/sql/Pg/build-db.sh
+++ b/Open-ILS/src/sql/Pg/build-db.sh
@@ -15,7 +15,7 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD
# ---------------------------------------------------------------------------
# Lookup the database version from the PostgreSQL server.
# ---------------------------------------------------------------------------
-DB_VERSION=`psql -qtc 'show server_version;' | xargs | cut -c1,3`
+DB_VERSION=`psql -qtc 'show server_version;' | xargs | cut -d. -f 1,2 | tr -d '.'`
if [ -z "$DB_VERSION" ] || [ `echo $DB_VERSION | grep -c '[^0-9]'` != 0 ]; then
cat <<EOM
********************************************************************************
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/build-db.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list