Files
frigate/docker/rootfs/etc/services.d/go2rtc/run
T

12 lines
305 B
Plaintext
Raw Normal View History

#!/command/with-contenv bash
# shellcheck shell=bash
2022-12-07 10:47:40 -03:00
# Start the go2rtc service
2022-12-07 10:47:40 -03:00
set -o errexit -o nounset -o pipefail
2023-01-16 16:50:35 -07:00
raw_config=$(python3 /usr/local/go2rtc/create_config.py)
2022-12-07 10:47:40 -03:00
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
exec 2>&1
2023-01-16 16:50:35 -07:00
exec go2rtc -config="${raw_config}"