From: Dan Scott Date: Tue, 4 Oct 2011 03:35:35 +0000 (-0400) Subject: Fix update_db.sh to set eg_version correctly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=de67a84de3bbb1cb70e3224765c5cbf85c8f1cc1;p=evergreen%2Fmasslnc.git Fix update_db.sh to set eg_version correctly psql wants --set=VARNAME=VALUE, we had -set VARNAME=VALUE; tested this fix and it works with PostgreSQL 9.0. Signed-off-by: Dan Scott --- diff --git a/build/tools/update_db.sh b/build/tools/update_db.sh index 3177f1b76f..e93431c8bf 100755 --- a/build/tools/update_db.sh +++ b/build/tools/update_db.sh @@ -106,7 +106,7 @@ if [ $COUNT -gt 0 ] ; then for (( i=0; i<$COUNT; i++ )) ; do echo "* Applying ${FILES[$i]}" >&3; # to the main script STDOUT cat ${FILES[$i]}; # to the psql pipe - done | psql -set eg_version="'$EGVERSION'" $PSQL_ACCESS ; + done | psql --set=eg_version="'$EGVERSION'" $PSQL_ACCESS ; else echo "* Nothing to update"; fi