From 3f95e567c1cae40206c900659a723337673a4907 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 30 Jul 2016 21:30:45 -0700 Subject: [PATCH] Use apt-add-repository to setup Zulip PPA. --- scripts/lib/install | 4 ++-- scripts/lib/setup-apt-repo | 18 ------------------ tools/provision.py | 3 ++- 3 files changed, 4 insertions(+), 21 deletions(-) delete mode 100755 scripts/lib/setup-apt-repo diff --git a/scripts/lib/install b/scripts/lib/install index c0de057aed..154681d133 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -15,8 +15,8 @@ DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}" PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::voyager}" VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}" -/root/zulip/scripts/lib/setup-apt-repo - +# Add the Zulip PPA +apt-add-repository --enable-source --yes ppa:tabbott/zulip apt-get update apt-get -y dist-upgrade $APT_OPTIONS apt-get install -y puppet git python python-six crudini $ADDITIONAL_PACKAGES diff --git a/scripts/lib/setup-apt-repo b/scripts/lib/setup-apt-repo deleted file mode 100755 index 735d850fc7..0000000000 --- a/scripts/lib/setup-apt-repo +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -x -set -x - -apt-get install -y lsb-release - -# First, install any updates from the apt repo that may be needed -wget -qO - https://zulip.com/dist/keys/zulip-ppa.asc | apt-key add - -release=$(lsb_release -sc) -if [ "$release" = "trusty" ] || [ "$release" = "xenial" ]; then - cat >/etc/apt/sources.list.d/zulip.list <