install: Disable installation and provisioning on Ubuntu 14.04 Trusty.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-06-26 15:14:20 -07:00
committed by Tim Abbott
parent 4e1060b29e
commit caecd1c2ad
6 changed files with 5 additions and 18 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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",

View File

@@ -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()