From a72004d8a9dce26ede9328b78c77051221e0d99f Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sun, 23 Mar 2025 13:34:52 -0300 Subject: [PATCH] If previous config was yaml, migrate to yaml --- docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run index 83187a0e4..ec75fb76e 100755 --- a/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run +++ b/docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run @@ -19,20 +19,19 @@ function migrate_addon_config_dir() { # Already migrated return 0 fi - unset new_config_file new_config_file_yaml local old_config_file="${home_assistant_config_dir}/frigate.yml" local old_config_file_yaml="${old_config_file//.yml/.yaml}" - local new_config_file="${config_dir}/config.yml" if [[ -f "${old_config_file}" ]]; then : elif [[ -f "${old_config_file_yaml}" ]]; then old_config_file="${old_config_file_yaml}" + new_config_file="${new_config_file_yaml}" else # Nothing to migrate return 0 fi - unset old_config_file_yaml + unset old_config_file_yaml new_config_file new_config_file_yaml local db_path db_path=$(yq -r '.database.path' "${old_config_file}")