mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
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.
20 lines
630 B
Bash
Executable File
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" "$@"
|