From 2e92d928ae54600748311682f26649faaa758cb2 Mon Sep 17 00:00:00 2001 From: legop3 Date: Fri, 14 Nov 2025 05:18:44 -0500 Subject: [PATCH] fix bash installer --- pi/install_roverd.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pi/install_roverd.sh b/pi/install_roverd.sh index bf023abd..8f4848e2 100755 --- a/pi/install_roverd.sh +++ b/pi/install_roverd.sh @@ -62,13 +62,6 @@ if [[ ! -f "$CONFIG_SRC" ]]; then exit 1 fi -if ! command -v libcamera-vid >/dev/null 2>&1; then - log "WARNING: libcamera-vid not found in PATH; install libcamera-utils for video publishing" -fi -if ! command -v ffmpeg >/dev/null 2>&1; then - log "WARNING: ffmpeg not found in PATH; install ffmpeg for WHIP publishing" -fi - ensure_user() { local user="$1" local groups="${2:-}" @@ -87,6 +80,13 @@ log() { echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] $*" } +if ! command -v libcamera-vid >/dev/null 2>&1; then + log "WARNING: libcamera-vid not found in PATH; install libcamera-utils for video publishing" +fi +if ! command -v ffmpeg >/dev/null 2>&1; then + log "WARNING: ffmpeg not found in PATH; install ffmpeg for WHIP publishing" +fi + ensure_user roverd "dialout,gpio,video" install -o roverd -g roverd -m 0755 "$BINARY_SRC" /usr/local/bin/roverd log "Installed roverd binary"