mirror of https://github.com/zulip/zulip.git
install: Cleanup code for PPA setup.
This commit is contained in:
parent
ebe76dd2c3
commit
d07bcf060e
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue