Files
vpsmgr/scripts
bluebluesodaandCommandCodeBot 7d455d32bb fix(traefik): stop reverting dynamic dir to 0750 on every vps install
The 0755 world-readable scheme from 2980e3a only touched the installer
scripts; ensureVPSUser still ran the old cross-link block on every
`vps install` (40-panel.sh), chmodding /etc/traefik and the dynamic dir
back to 0750 after 30-traefik.sh had set 0755 — so the fix never stuck
until a manual chmod 755.

Drop the vps<->traefik group cross-link and 0750 from ensureVPSUser:
with a world-readable dynamic dir, traefik reads the YAMLs as its own
user and vps writes as owner; no group link is needed. 30-traefik.sh now
chowns the dynamic dir to vps:vps (matching ensureVPSUser) instead of
root:traefik, so the service unit keeps running as unprivileged traefik.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
2026-08-15 06:04:27 +00:00
..