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

The initial step in pg_upgradecluster stops the cluster for us; this
removes the somewhat ugly hack we are otherwise forced into.
This commit is contained in:
Alex Vandiver
2020-07-09 23:40:08 +00:00
committed by Tim Abbott
parent bf0f712c81
commit 0502b7a8d5

View File

@@ -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