postgres-create-db: Split into non-pgroonga and pgroonga scripts.

Fixes #12655.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-07-15 17:04:33 -07:00
committed by Tim Abbott
parent 1418b8b05f
commit f97bb6b65c
5 changed files with 12 additions and 25 deletions

View File

@@ -48,7 +48,7 @@ su "$POSTGRES_USER" -c 'psql -v ON_ERROR_STOP=1 -e' <<EOF
DROP DATABASE IF EXISTS zulip;
EOF
"$(dirname "$0")/postgres-create-db"
su "$POSTGRES_USER" -c 'psql -v ON_ERROR_STOP=1 -e' < "$(dirname "$0")/create-db.sql"
)
# Clear memcached to avoid contamination from previous database state