[open-ils-commits] r15380 - trunk/build/tools (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 25 12:48:43 EST 2010
Author: erickson
Date: 2010-01-25 12:48:40 -0500 (Mon, 25 Jan 2010)
New Revision: 15380
Modified:
trunk/build/tools/update_db.sh
Log:
Patch from Joe Atzberger to allow db update script to run from the ILS base directory
Modified: trunk/build/tools/update_db.sh
===================================================================
--- trunk/build/tools/update_db.sh 2010-01-25 17:42:03 UTC (rev 15379)
+++ trunk/build/tools/update_db.sh 2010-01-25 17:48:40 UTC (rev 15380)
@@ -25,7 +25,7 @@
db_user - database username
db_name - database name
-Run from your source repository Open-ILS/src/sql/Pg directory.
+Run from your source repository root or Open-ILS/src/sql/Pg directory.
You will be prompted for the postgres password if necessary.
@@ -62,6 +62,9 @@
[ -z "$VERSION" ] && usage_die "config.upgrade_log missing ANY installed version data!";
echo "* Last installed version -> $VERSION";
+if [ -d ./Open-ILS/src/sql/Pg ] ; then
+ cd ./Open-ILS/src/sql/Pg ;
+fi
[ -d ./upgrade ] || usage_die "No ./upgrade directory found. Please run from Open-ILS/src/sql/Pg";
declare -a FILES;
More information about the open-ils-commits
mailing list