mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
upgrade-postgresql: Prevent PostgreSQL downgrades.
This commit is contained in:
committed by
Tim Abbott
parent
501d38b781
commit
32e1384ca0
@@ -21,6 +21,11 @@ if [ "$UPGRADE_TO" = "$UPGRADE_FROM" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$UPGRADE_TO" -lt "$UPGRADE_FROM" ]]; then
|
||||||
|
echo "Refusing to downgrade PostgreSQL $UPGRADE_FROM to $UPGRADE_TO!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
"$ZULIP_PATH"/scripts/lib/setup-apt-repo
|
"$ZULIP_PATH"/scripts/lib/setup-apt-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user