fix bash installer

This commit is contained in:
legop3
2025-11-14 05:18:44 -05:00
parent a35bdad805
commit 2e92d928ae
+7 -7
View File
@@ -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"