mirror of https://github.com/zulip/zulip.git
install: Add support for installing Xenial systems.
This isn't fully supported yet, but merging this makes it more convenient to test Zulip on Ubuntu Xenial.
This commit is contained in:
parent
4ea75528ea
commit
f094123fd3
|
@ -14,12 +14,25 @@ DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}"
|
|||
# Docker. Use e.g. zulip::app_frontend for a Zulip frontend server.
|
||||
PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::voyager}"
|
||||
|
||||
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 -
|
||||
cat >/etc/apt/sources.list.d/zulip.list <<EOF
|
||||
release=$(lsb_release -sc)
|
||||
if [ "$release" = "trusty" ]; 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
|
||||
EOF
|
||||
else
|
||||
echo "Unsupported release $release."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
apt-get update
|
||||
apt-get -y dist-upgrade $APT_OPTIONS
|
||||
|
|
Loading…
Reference in New Issue