Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

postgresql-init-db: Fix installation from world-unreadable directory.

Anders Kaseorgbc4552536993
diff --git a/scripts/setup/postgresql-init-db b/scripts/setup/postgresql-init-db
index 230c077fbe2..5a06229c1a6 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.