install: Cleanup code for PPA setup.

This commit is contained in:
Tim Abbott 2016-07-27 13:29:09 -07:00
parent ebe76dd2c3
commit d07bcf060e
1 changed files with 3 additions and 8 deletions

View File

@ -20,15 +20,10 @@ 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" ]; then
if [ "$release" = "trusty" ] || [ "$release" = "xenial" ]; then
cat >/etc/apt/sources.list.d/zulip.list <<EOF
deb http://ppa.launchpad.net/tabbott/zulip/ubuntu trusty main
deb-src http://ppa.launchpad.net/tabbott/zulip/ubuntu trusty main
EOF
elif [ "$release" = "xenial" ]; then
cat >/etc/apt/sources.list.d/zulip.list <<EOF
deb http://ppa.launchpad.net/tabbott/zulip/ubuntu xenial main
deb-src http://ppa.launchpad.net/tabbott/zulip/ubuntu xenial main
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."