mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
install: Disable installation and provisioning on Ubuntu 14.04 Trusty.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
4e1060b29e
commit
caecd1c2ad
@@ -100,7 +100,7 @@ os_info="$(lsb_release --short --id --release --codename)"
|
||||
{ read -r os_id; read -r os_release; read -r os_codename; } <<< "$os_info"
|
||||
|
||||
case "$os_codename" in
|
||||
trusty|xenial|stretch|bionic) ;;
|
||||
xenial|stretch|bionic) ;;
|
||||
*)
|
||||
set +x
|
||||
cat <<EOF
|
||||
@@ -109,7 +109,6 @@ Unsupported OS release: $os_codename
|
||||
|
||||
Zulip in production is supported only on:
|
||||
- Debian 9 "stretch"
|
||||
- Ubuntu 14.04 LTS "trusty" (deprecated)
|
||||
- Ubuntu 16.04 LTS "xenial"
|
||||
- Ubuntu 18.04 LTS "bionic"
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ apt-get -y install "${pre_setup_deps[@]}"
|
||||
SCRIPTS_PATH="$(dirname "$(dirname "$0")")"
|
||||
|
||||
release=$(lsb_release -sc)
|
||||
if [ "$release" = "trusty" ] || [ "$release" = "xenial" ] || [ "$release" = "bionic" ]; then
|
||||
if [ "$release" = "xenial" ] || [ "$release" = "bionic" ]; then
|
||||
apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc
|
||||
apt-key add "$SCRIPTS_PATH"/setup/zulip-ppa.asc
|
||||
cat >$SOURCES_FILE <<EOF
|
||||
|
||||
@@ -4,7 +4,7 @@ import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
from scripts.lib.zulip_tools import run, run_as_root, ENDC, WARNING, parse_lsb_release
|
||||
from scripts.lib.zulip_tools import run, run_as_root, ENDC, WARNING
|
||||
from scripts.lib.hash_reqs import expand_reqs
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
@@ -30,9 +30,7 @@ VENV_DEPENDENCIES = [
|
||||
"python-dev",
|
||||
"python3-pip",
|
||||
"python-pip",
|
||||
"python-virtualenv", # Trusty lacks `python3-virtualenv`.
|
||||
# Fortunately we don't need the library,
|
||||
# only the command, and this suffices.
|
||||
"virtualenv",
|
||||
"python3-six",
|
||||
"python-six",
|
||||
"libxml2-dev", # Used for installing talon
|
||||
@@ -78,12 +76,6 @@ FEDORA_VENV_DEPENDENCIES = COMMON_YUM_VENV_DEPENDENCIES + [
|
||||
"virtualenv", # see https://unix.stackexchange.com/questions/27877/install-virtualenv-on-fedora-16
|
||||
]
|
||||
|
||||
codename = parse_lsb_release()["DISTRIB_CODENAME"]
|
||||
|
||||
if codename != "trusty":
|
||||
# Workaround for the fact that trusty has a different package name here.
|
||||
VENV_DEPENDENCIES.append("virtualenv")
|
||||
|
||||
THUMBOR_VENV_DEPENDENCIES = [
|
||||
"libcurl4-openssl-dev",
|
||||
"libjpeg-dev",
|
||||
|
||||
@@ -22,7 +22,7 @@ config.read("/etc/zulip/zulip.conf")
|
||||
|
||||
if not os.path.exists("/etc/puppet/hiera.yaml"):
|
||||
codename = parse_lsb_release()['DISTRIB_CODENAME']
|
||||
if codename in ["trusty", "stretch", "xenial"]:
|
||||
if codename in ["stretch", "xenial"]:
|
||||
# Suppress warnings in old puppet about hiera.yaml not existing.
|
||||
open("/etc/puppet/hiera.yaml", "a").close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user