This commit is contained in:
legop3
2025-11-28 00:51:36 -05:00
parent 9e089b6e4d
commit 1daf5d7d03
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -12,7 +12,12 @@ fi
# shellcheck disable=SC1090
source "$ENV_FILE"
: "${PUBLISH_URL:?PUBLISH_URL not set in ${ENV_FILE}}"
PUBLISH_URL="${PUBLISH_URL:-}"
if [[ -z "${PUBLISH_URL}" ]]; then
echo "PUBLISH_URL not set in ${ENV_FILE}; contents:" >&2
sed -n '1,200p' "$ENV_FILE" >&2
exit 1
fi
VIDEO_WIDTH="${VIDEO_WIDTH:-1920}"
VIDEO_HEIGHT="${VIDEO_HEIGHT:-1080}"
+2
View File
@@ -195,7 +195,9 @@ install_audio_support() {
# Install video publisher assets
install -D -o root -g root -m 0755 pi/bin/video-publisher.sh /usr/local/bin/video-publisher
log "Installed video-publisher helper"
install -m 0644 pi/systemd/video-publisher.service /etc/systemd/system/video-publisher.service
log "Installed video-publisher systemd unit"
install -d -o roverd -g roverd /var/lib/roverd
cat > /var/lib/roverd/video.env <<'ENV'
# Managed by roverd; placeholder values will be overwritten at runtime.