SPB Git

Repository Public

relay-start.sh 547 B 11 lines shellscript

1#!/bin/bash2# SP TV — relay engine (MediaMTX). Started by PM2 as `sp-tv-relay`, from the application folder.3# The configuration is generated from the relay settings; MediaMTX only listens on 127.0.0.1.4set -euo pipefail5cd "$(dirname "$0")/.."6export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH"7BIN="${RELAY_BIN:-$HOME/opt/mediamtx/mediamtx}"8[ -x "$BIN" ] || { echo "MediaMTX introuvable ($BIN) : lancez scripts/relay-install.sh" >&2; exit 1; }9CONF="$(node --import tsx scripts/relay-config.ts | tail -1)"10exec "$BIN" "$CONF"11
Files main
Menu

Theme