mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-13 10:12:47 +03:00
reload nginx by signaling the master instead of parsing its config as root
This commit is contained in:
@@ -157,7 +157,7 @@ if [[ "$(id -u)" -eq 0 ]]; then
|
||||
# sweep blessed against the container-local dir created below would let
|
||||
# a volume attached later skip the sweep forever
|
||||
sentinel_args=(--sentinel /config/.permissions_version)
|
||||
if ! awk '$2 == "/media" || $2 ~ /^\/media\//' /proc/mounts | grep -q .; then
|
||||
if ! awk '$2 == "/media" || $2 == "/media/frigate" || $2 ~ /^\/media\/frigate\//' /proc/mounts | grep -q .; then
|
||||
sentinel_args=()
|
||||
fi
|
||||
/usr/local/bin/fix-ownership "${sentinel_args[@]}" \
|
||||
|
||||
Reference in New Issue
Block a user