From 43720e9a7570124448ff662c18b5320672fb2b6f Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Thu, 7 Jul 2022 19:19:57 +0200 Subject: [PATCH] Fix to arguments --- camera-rtc/config.yaml | 2 +- camera-rtc/rootfs/etc/services.d/aiortc/run | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/camera-rtc/config.yaml b/camera-rtc/config.yaml index 81e07e9..cca5bfe 100644 --- a/camera-rtc/config.yaml +++ b/camera-rtc/config.yaml @@ -1,5 +1,5 @@ name: "Camera-RTC" -version: "2022.7.009" +version: "2022.7.010" slug: "camera-aiortc" description: "Camera stream with support for WebRTC." url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/camera-rtc" diff --git a/camera-rtc/rootfs/etc/services.d/aiortc/run b/camera-rtc/rootfs/etc/services.d/aiortc/run index 6d5c4ee..b868443 100644 --- a/camera-rtc/rootfs/etc/services.d/aiortc/run +++ b/camera-rtc/rootfs/etc/services.d/aiortc/run @@ -5,12 +5,11 @@ # ============================================================================== declare -a options +if bashio::config.has_value 'webrtc_arguments'; then + options+="$(bashio::config 'webrtc_arguments')" +fi basio::log.info "Starting aiortc with arguments: '$options'" -if bashio::config.has_value 'webrtc_arguments'; then - options+="${bashio::config 'webrtc_arguments'}" -fi - # Run aiortc exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"