Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
create-database: Skip stop-server and flush-memcached on standalone Pg.
Alex Vandiveracc94a5f3231
diff --git a/scripts/setup/create-database b/scripts/setup/create-databaseindex 3c3de04ff89..9316133384b 100755--- a/scripts/setup/create-database+++ b/scripts/setup/create-database@@ -29,8 +29,8 @@ if [ "$(su "$POSTGRES_USER" -c "cd / && psql -v ON_ERROR_STOP=1 -Atc \"SELECT 1fi# Shut down all services to ensure a quiescent state.-if [ -e "/var/run/supervisor.sock" ]; then- su zulip -c "$(dirname "$0")/../stop-server"+if [ -e "/home/zulip/deployments" ]; then+ su zulip -c "/home/zulip/deployments/current/scripts/stop-server"fi# Drop any open connections to any old database.@@ -54,6 +54,8 @@ EOFfi# Clear memcached to avoid contamination from previous database state-"$(dirname "$0")/flush-memcached"+if [ -e "/home/zulip/deployments" ]; then+ /home/zulip/deployments/current/scripts/setup/flush-memcached+fiecho "Database created"