From 230891628ec234cba510f4685706dc7c4bc60ebc Mon Sep 17 00:00:00 2001 From: riley Date: Wed, 27 Sep 2023 12:22:56 -0400 Subject: [PATCH] Updated mask handling --- root/usr/libexec/apps/frigate/frigate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }