#!/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=$(sha1sum "$SOURCES_FILE") apt-get install -y lsb-release apt-transport-https SCRIPTS_PATH="$(dirname "$(dirname "$0")")" release=$(lsb_release -sc) if [ "$release" = "trusty" ] || [ "$release" = "xenial" ] || [ "$release" = "bionic" ]; then apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc apt-key add "$SCRIPTS_PATH"/setup/zulip-ppa.asc cat >/etc/apt/sources.list.d/zulip.list </etc/apt/sources.list.d/zulip.list <