From 37040ac49d754c0d4d225a2bf014fa672ed11eeb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 1 Jun 2023 13:38:44 -0700 Subject: [PATCH] install: Add system_requirements_failure helper. Signed-off-by: Anders Kaseorg --- scripts/lib/install | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/lib/install b/scripts/lib/install index 835aee9a2a..f9da9c342b 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -49,6 +49,18 @@ Options: EOF } +system_requirements_failure() { + set +x + echo >&2 + cat >&2 + cat <&2 + +For more information, see: + https://zulip.readthedocs.io/en/latest/production/requirements.html +EOF + exit 1 +} + # Shell option parsing. Over time, we'll want to move some of the # environment variables below into this self-documenting system. args="$(getopt -o '' --long help,hostname:,email:,certbot,self-signed-cert,cacert:,postgresql-database-name:,postgresql-database-user:,postgresql-version:,postgresql-missing-dictionaries,no-init-db,no-overwrite-settings,no-dist-upgrade -n "$0" -- "$@")" @@ -221,9 +233,7 @@ fi case "$os_id $os_version_id" in 'debian 11' | 'debian 12' | 'ubuntu 20.04' | 'ubuntu 22.04') ;; *) - set +x - cat <