From 5de6f3523c891bc9b698bb58b7bc223f9ded8659 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 1 Oct 2020 12:56:59 -0700 Subject: [PATCH] upgrade-postgres: Pass the requested postgres explicitly. --- scripts/setup/upgrade-postgres | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup/upgrade-postgres b/scripts/setup/upgrade-postgres index 03874195e2..9eedb5c00d 100755 --- a/scripts/setup/upgrade-postgres +++ b/scripts/setup/upgrade-postgres @@ -40,7 +40,7 @@ fi # Capture the output so we know where the path to the post-upgrade scripts is UPGRADE_LOG=$(mktemp "/var/log/zulip/postgres-upgrade-$UPGRADE_FROM-$UPGRADE_TO.XXXXXXXXX.log") -pg_upgradecluster "$UPGRADE_FROM" main --method=upgrade --link | tee "$UPGRADE_LOG" +pg_upgradecluster -v "$UPGRADE_TO" "$UPGRADE_FROM" main --method=upgrade --link | tee "$UPGRADE_LOG" SCRIPTS_PATH=$(grep -o "/var/log/postgresql/pg_upgradecluster-$UPGRADE_FROM-$UPGRADE_TO-main.*" "$UPGRADE_LOG" || true) # If the upgrade completed successfully, lock in the new version in