mirror of https://github.com/zulip/zulip.git
upgrade-postgres: Pass the requested postgres explicitly.
This commit is contained in:
parent
2e58e27926
commit
5de6f3523c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue