mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 10:15:22 +03:00
Write start script
This commit is contained in:
parent
aba9b1fd30
commit
218c571459
@ -4,12 +4,7 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
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
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec go2rtc -config="${config_path}"
|
exec python3 /usr/local/go2rtc/create_config.py
|
||||||
|
exec go2rtc
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user