Skip to content

NVR with realtime local object detection for IP cameras

Fix frigate failing when no config is defined (#12611)

Nicolas Mowen4c2e6f75a280
diff --git a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
index f2cc40fcfc..50da2aef9c 100755
--- a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
+++ b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
@@ -16,8 +16,8 @@ function migrate_db_path() {
if [[ -f "${config_file_yaml}" ]]; then
config_file="${config_file_yaml}"
elif [[ ! -f "${config_file}" ]]; then
- echo "[ERROR] Frigate config file not found"
- return 1
+ # Frigate will create the config file on startup
+ return 0
fi
unset config_file_yaml