mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
scripts: Always use ON_ERROR_STOP=1 when running psql.
Also use psql -e (--echo-queries) in scripts that use ‘set -x’, so errors can be traced to a specific query from the output. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
efd22fd2ae
commit
5290519a62
@@ -17,7 +17,7 @@ GRANT USAGE ON SCHEMA pgroonga TO zulip;
|
||||
"
|
||||
|
||||
if [ -f /.dockerenv ]; then
|
||||
echo "$DATABASE_CREATE" | psql
|
||||
echo "$DATABASE_CREATE" | psql -v ON_ERROR_STOP=1 -e
|
||||
else
|
||||
echo "$DATABASE_CREATE" | su postgres -c psql
|
||||
echo "$DATABASE_CREATE" | su postgres -c 'psql -v ON_ERROR_STOP=1 -e'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user