mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
generate config after supervisor data is loaded
This commit is contained in:
parent
6463e54a8d
commit
ba8a0d1fbd
@ -51,11 +51,12 @@ if [[ -f "/dev/shm/go2rtc.yaml" ]]; then
|
|||||||
|
|
||||||
if [[ ! -f "/dev/shm/go2rtc.yaml" ]]; then
|
if [[ ! -f "/dev/shm/go2rtc.yaml" ]]; then
|
||||||
echo "[INFO] Preparing new go2rtc config..."
|
echo "[INFO] Preparing new go2rtc config..."
|
||||||
python3 /usr/local/go2rtc/create_config.py
|
|
||||||
|
|
||||||
if [[ -n "${SUPERVISOR_TOKEN:-}" ]]; then
|
if [[ -n "${SUPERVISOR_TOKEN:-}" ]]; then
|
||||||
# Running as a Home Assistant add-on, infer the IP address and port
|
# Running as a Home Assistant add-on, infer the IP address and port
|
||||||
get_ip_and_port_from_supervisor
|
get_ip_and_port_from_supervisor
|
||||||
|
|
||||||
|
python3 /usr/local/go2rtc/create_config.py
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "[WARNING] Unable to remove existing go2rtc config. Changes made to your frigate config file may not be recognized. Please remove the /dev/shm/go2rtc.yaml from your docker host manually."
|
echo "[WARNING] Unable to remove existing go2rtc config. Changes made to your frigate config file may not be recognized. Please remove the /dev/shm/go2rtc.yaml from your docker host manually."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user