From 218c57145918252c26542c64002b31c0d6327d87 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 15 Jan 2023 17:27:32 -0700 Subject: [PATCH] Write start script --- docker/rootfs/etc/services.d/go2rtc/run | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docker/rootfs/etc/services.d/go2rtc/run b/docker/rootfs/etc/services.d/go2rtc/run index 9b41e517b..02ff18a0e 100755 --- a/docker/rootfs/etc/services.d/go2rtc/run +++ b/docker/rootfs/etc/services.d/go2rtc/run @@ -4,12 +4,7 @@ set -o errexit -o nounset -o pipefail -if [[ -f "/config/frigate-go2rtc.yaml" ]]; then - config_path="/config/frigate-go2rtc.yaml" -else - config_path="/usr/local/go2rtc/go2rtc.yaml" -fi - # Replace the bash process with the go2rtc process, redirecting stderr to stdout exec 2>&1 -exec go2rtc -config="${config_path}" +exec python3 /usr/local/go2rtc/create_config.py +exec go2rtc