upgrade-postgresql: Prevent PostgreSQL downgrades.

This commit is contained in:
Alex Vandiver 2023-06-05 20:25:54 +00:00 committed by Tim Abbott
parent 501d38b781
commit 32e1384ca0
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ if [ "$UPGRADE_TO" = "$UPGRADE_FROM" ]; then
exit 1
fi
if [[ "$UPGRADE_TO" -lt "$UPGRADE_FROM" ]]; then
echo "Refusing to downgrade PostgreSQL $UPGRADE_FROM to $UPGRADE_TO!"
exit 1
fi
set -x
"$ZULIP_PATH"/scripts/lib/setup-apt-repo