mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
18 lines
483 B
Plaintext
Executable File
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"
|