blakeblackshear.frigate/docker/rootfs/etc/services.d/go2rtc/run
Felipe Santos 94a2b6bb88
Upgrade s6-overlay from 2.2.0.3 to 3.1.2.1 (#4584)
Also remove the unnecessary xz-utils from the final image.
2022-12-03 10:23:19 -06:00

14 lines
361 B
Plaintext
Executable File

#!/command/with-contenv bash
# shellcheck shell=bash
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425?permalink_comment_id=3945021
set -euo pipefail
if [[ -f "/config/frigate-go2rtc.yaml" ]]; then
config_path="/config/frigate-go2rtc.yaml"
else
config_path="/usr/local/go2rtc/go2rtc.yaml"
fi
exec go2rtc -config="${config_path}"