From c3a4cbb87277406c934ee001dded97cc5e2ad8e9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 27 Aug 2026 13:15:51 -0500 Subject: [PATCH] skip missing media paths in the per-boot ownership sweep --- docker/main/rootfs/etc/s6-overlay/s6-rc.d/prepare/run | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 deb454fd66..8372054b85 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 @@ -177,8 +177,16 @@ if [[ "$(id -u)" -eq 0 ]]; then # realign them on every boot. Recordings are chowned at create and # stay behind the sentinel sweep above. if [[ -n "$root_services_mode" ]]; then + # clips and exports don't exist until the frigate service has run + # once; a WARN about them on a normal first boot invites reports + boot_sweep_paths=(/config) + for extra in /media/frigate/clips /media/frigate/exports; do + if [[ -d "$extra" ]]; then + boot_sweep_paths+=("$extra") + fi + done /usr/local/bin/fix-ownership \ - "${PUID:-1000}" "${PGID:-1000}" /config /media/frigate/clips /media/frigate/exports + "${PUID:-1000}" "${PGID:-1000}" "${boot_sweep_paths[@]}" fi fi fi