Write start script

This commit is contained in:
Nick Mowen 2023-01-15 17:27:32 -07:00
parent aba9b1fd30
commit 218c571459

View File

@ -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