mirror of https://github.com/zulip/zulip.git
upgrade-postgresql: Prevent PostgreSQL downgrades.
This commit is contained in:
parent
501d38b781
commit
32e1384ca0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue