Commit 92266c14 authored by Vitaly Lipatov's avatar Vitaly Lipatov

Fix resolved file permissions: chgrp eterrouter after mv

mv preserves source file group (root), not sgid directory group. Explicit chgrp+chmod ensures routeweb can always read resolved files. Co-Authored-By: 's avatarClaude Opus 4.6 (1M context) <noreply@anthropic.com>
parent 6f466bcb
......@@ -809,6 +809,7 @@ for line in sys.stdin:
echo "$_pref" > "$STATE_DIR/$_state/pref"
cp "$_gwdir/gateway" "$STATE_DIR/$_state/gateway"
mv "$_resolved_new" "$STATE_DIR/$_state/resolved"
chgrp eterrouter "$STATE_DIR/$_state/resolved" 2>/dev/null
chmod g+r "$STATE_DIR/$_state/resolved" 2>/dev/null
# Pre-aggregate for fast API export (background, non-blocking)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment