mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
15 lines
398 B
Plaintext
Executable File
15 lines
398 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Start the go2rtc service
|
|
|
|
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}" |