#!/bin/sh # allstarVCR: add the apt repository and install the dashboard on an AllStarLink 3 node. # # curl -fsSL https://apt.allstarvcr.com/setup.sh | sudo bash # # Adds the repository's signing key and source (the same files the allstarvcr package ships, so # apt keeps them in sync), then installs allstarvcr. Open http://:8080 afterwards to finish # setup in the browser. Updates: sudo apt upgrade, nightly automatic updates, or "Update now". set -eu REPO=https://apt.allstarvcr.com KEYRING=/usr/share/keyrings/allstarvcr-archive-keyring.gpg [ "$(id -u)" -eq 0 ] || { echo "Run as root: curl -fsSL $REPO/setup.sh | sudo bash"; exit 1; } id asterisk >/dev/null 2>&1 || { echo "AllStarLink 3 doesn't seem to be installed (no 'asterisk' user)."; exit 1; } command -v curl >/dev/null || apt-get install -y curl ca-certificates echo "==> Adding the allstarVCR repository" tmp=$(mktemp) curl -fsSL "$REPO/allstarvcr-archive-keyring.gpg" -o "$tmp" install -m 644 "$tmp" "$KEYRING" rm -f "$tmp" cat >/etc/apt/sources.list.d/allstarvcr.sources < Installing allstarvcr" apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=--force-confold allstarvcr port=$(grep -E '^(APP_PORT|PORT)=' /opt/allstarvcr/.env 2>/dev/null | head -1 | cut -d= -f2 | tr -d "'\" ") echo echo "allstarVCR is installed: http://$(hostname).local:${port:-8080}"