reload nginx by signaling the master instead of parsing its config as root

This commit is contained in:
Josh Hawkins
2026-08-29 15:59:23 -05:00
parent 2cd51a31a8
commit 17b37a08a9
2 changed files with 22 additions and 2 deletions
@@ -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[@]}" \