collapse the duplicated sentinel comment

This commit is contained in:
Josh Hawkins
2026-08-27 09:30:56 -05:00
parent 2ef2323fbd
commit 7f65500c37
@@ -153,13 +153,9 @@ if [[ "$(id -u)" -eq 0 ]]; then
if [[ "${FRIGATE_RUN_AS_ROOT:-false}" == "true" ]]; then
rm -f /config/.permissions_version
else
# Only record the sentinel when something is mounted under /media: a
# sweep blessed against the container-local dir created below would let
# a volume attached later skip the sweep forever
# Only bless the sentinel when persistent storage actually backs
# /media/frigate, i.e. a mount at that exact path or below it. A mount
# at the /media parent does not count: a dedicated /media/frigate volume
# added later would shadow the swept directory and be skipped forever.
# Only bless the sentinel when a mount backs /media/frigate itself or
# below it. A parent /media mount doesn't count: a dedicated
# /media/frigate volume added later would be shadowed and skipped.
sentinel_args=(--sentinel /config/.permissions_version)
if ! awk '$2 == "/media/frigate" || $2 ~ /^\/media\/frigate\//' /proc/mounts | grep -q .; then
sentinel_args=()