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.

upgrade: Drop the unnecessary step that stops the old cluster.

Alex Vandiver0502b7a8d512
diff --git a/scripts/setup/upgrade-postgres b/scripts/setup/upgrade-postgres
index 8536f729092..11198039709 100755
--- a/scripts/setup/upgrade-postgres
+++ b/scripts/setup/upgrade-postgres
@@ -23,11 +23,6 @@ if pg_lsclusters -h | grep -qE "^$UPGRADE_TO\s+main\b"; then
pg_dropcluster "$UPGRADE_TO" main --stop
fi
-# Work around `systemctl stop postgresql` being asynchronous, since
-# the pg_upgradecluster command fails if it is still running
-# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759725
-pg_ctlcluster "$UPGRADE_FROM" main stop
-
(
# Two-stage application of puppet; we apply the bare-bones
# postgresql configuration first, so that FTS will be configured