#!/bin/bash set -x SOURCES_FILE=/etc/apt/sources.list.d/zulip.list STAMP_FILE=/etc/apt/sources.list.d/zulip.list.apt-update-in-progress zulip_source_hash=`shasum $SOURCES_FILE` apt-get install -y lsb-release SCRIPTS_PATH="$(dirname $(dirname $0))" # Add the apt keys apt-key add "$SCRIPTS_PATH"/setup/zulip-ppa.asc apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc release=$(lsb_release -sc) if [ "$release" = "trusty" ] || [ "$release" = "xenial" ] || [ "$release" = "zesty" ]; then cat >/etc/apt/sources.list.d/zulip.list </etc/apt/sources.list.d/zulip.list <