frigate/docker/rootfs/etc/services.d/go2rtc/run
2022-11-14 13:37:14 -03:00

18 lines
483 B
Plaintext
Executable File

#!/command/with-contenv bashio
# ==============================================================================
# Runs go2rtc
# ==============================================================================
# shellcheck shell=bash
bashio::log.info 'Starting go2rtc...'
declare config_path
if [[ -f "/config/frigate-go2rtc.yaml" ]]; then
config_path="/config/frigate-go2rtc.yaml"
else
config_path="/usr/local/go2rtc/sbin/go2rtc.yaml"
fi
exec go2rtc -config="$config_path"