Files
zulip/scripts/lib/setup-apt-repo
Tim Abbott 5bff72c385 Revert "Use apt-add-repository to setup Zulip PPA."
This reverts commit 3f95e567c1.

Apparently `apt-add-repository` fails periodically in CI.  I suspect
this is some sort of silly networking problem, but given that all
we're saving is a few lines of code, the old version was better if
this fails basically ever.
2016-08-05 13:29:17 -07:00

19 lines
531 B
Bash
Executable File

#!/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 <<EOF
deb http://ppa.launchpad.net/tabbott/zulip/ubuntu $release main
deb-src http://ppa.launchpad.net/tabbott/zulip/ubuntu $release main
EOF
else
echo "Unsupported release $release."
exit 1
fi