mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
postgres-init-db: Stop all services before recreating database.
This commit is contained in:
@@ -5,6 +5,9 @@ set -x
|
||||
# Make sure the current working directory is readable
|
||||
cd /
|
||||
|
||||
# Shut down all services to ensure a quiescent state.
|
||||
supervisorctl stop all
|
||||
|
||||
# Drop any open connections to any old database. Hackishly call using
|
||||
# source because postgres user can't read /root/zulip/scripts/setup.
|
||||
source "$(dirname "$0")/terminate-psql-sessions" postgres zulip zulip_base
|
||||
|
||||
Reference in New Issue
Block a user