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 if [[ -f "${config_file_yaml}" ]]; then
config_file="${config_file_yaml}" config_file="${config_file_yaml}"
elif [[ ! -f "${config_file}" ]]; then elif [[ ! -f "${config_file}" ]]; then
echo "[ERROR] Frigate config file not found" # Frigate will create the config file on startup
return 1 return 0
fi fi
unset config_file_yaml unset config_file_yaml