diff --git a/scripts/setup/postgresql-init-db b/scripts/setup/postgresql-init-db index 230c077fbe..5a06229c1a 100755 --- a/scripts/setup/postgresql-init-db +++ b/scripts/setup/postgresql-init-db @@ -28,7 +28,7 @@ fi # Shut down all services to ensure a quiescent state. if [ -e "/var/run/supervisor.sock" ]; then - su zulip -c "$(dirname "$(dirname "$0")")/stop-server" + supervisorctl stop all fi # Drop any open connections to any old database.