mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 19:06:52 +03:00
collapse the duplicated sentinel comment
This commit is contained in:
@@ -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=()
|
||||
|
||||
Reference in New Issue
Block a user