hand /tmp/cache to the runtime user before services start

This commit is contained in:
Josh Hawkins
2026-08-29 15:59:23 -05:00
parent 9e356f1d3f
commit 93470c4ea5
2 changed files with 12 additions and 0 deletions
@@ -174,3 +174,10 @@ if [[ "$(id -u)" -eq 0 && ! -d /media/frigate ]]; then
chown "${PUID:-1000}:${PGID:-1000}" /media/frigate
fi
fi
# Usually a tmpfs mount, so it arrives root-owned and is outside the swept
# volumes. The runtime user binds its ZMQ IPC sockets in here.
if [[ "$(id -u)" -eq 0 && "${FRIGATE_RUN_AS_ROOT:-false}" != "true" ]]; then
mkdir -p /tmp/cache
chown "${PUID:-1000}:${PGID:-1000}" /tmp/cache
fi