#!/usr/bin/env bash # Lab helper: print nginx fragment with HLS_ROOT substituted. set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" HLS_ROOT="${1:-${ROOT}/storage/hls}" sed "s|@HLS_ROOT@|${HLS_ROOT}|g" "${ROOT}/nginx/hls-location.conf"