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

This commit is contained in:
Nicolas Mowen 2024-07-25 11:03:52 -06:00 committed by GitHub
parent 81139e8f47
commit 4c2e6f75a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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