Files
zulip/scripts/lib/upgrade-zulip-stage-2
Alex Vandiver 7f4bc05f8e install: Check for a supported version of the OS in shell.
Testing for it in Python means that we have to worry about keeping the
`upgrade-zulip-stage-2` backwards-compatible with all versions of
Python which we could ever be upgrading from -- which is all of them.

Factor out the "supported operating systems" check, and share it
between upgrade and install codepaths.
2024-04-16 11:13:33 -07:00

20 lines
630 B
Bash
Executable File

#!/usr/bin/env bash
#
# This script serves only to verify that the OS is a supported
# version, before we attempt to rely on that version in
# upgrade-zulip-stage-3
set -eu
ZULIP_PATH="$(readlink -f "$(dirname "$0")"/../..)"
if ! "$ZULIP_PATH/scripts/lib/supported-os"; then
echo "Unsupported platform!"
echo
echo "Sorry! The support for your OS has been discontinued."
echo "Please upgrade your OS to a supported release first."
echo "See https://zulip.readthedocs.io/en/latest/production/upgrade.html#upgrading-the-operating-system"
exit 1
fi
exec "$ZULIP_PATH/scripts/lib/upgrade-zulip-stage-3" "$@"