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

12 lines
341 B
Plaintext
Raw Normal View History

2022-10-26 19:41:48 +03:00
#!/bin/bash
2022-10-27 17:47:46 +03:00
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425?permalink_comment_id=3945021
set -euo pipefail
if [[ -f "/config/frigate-go2rtc.yaml" ]]; then
2022-10-27 17:47:46 +03:00
CONFIG_PATH=/config/frigate-go2rtc.yaml
2022-10-26 19:30:00 +03:00
else
2022-10-27 17:47:46 +03:00
CONFIG_PATH=/usr/local/go2rtc/sbin/go2rtc.yaml
fi
exec /usr/local/go2rtc/sbin/go2rtc -config="$CONFIG_PATH"