diff --git a/root/usr/libexec/apps/frigate/frigate.sh b/root/usr/libexec/apps/frigate/frigate.sh index 7f6c40c..fb6b94d 100755 --- a/root/usr/libexec/apps/frigate/frigate.sh +++ b/root/usr/libexec/apps/frigate/frigate.sh @@ -315,7 +315,7 @@ update_camera_in_yml() { if [ -n "$mask" ]; then set_yml_value $name ".motion.mask" "[\"$mask\"]" else - echo "Mask is empty, ignoring." + yq eval "del(.cameras.$name.motion)" -i /opt/docker2/compose/frigate/config.yml fi }