1.4 KiB
1.4 KiB
P0-007: Install Script Template Uses Wrong Path Variables
Priority: P0 (Critical) Date Identified: 2025-12-17 Status: ✅ FIXED Date Fixed: 2025-12-17 Fixed By: Casey & Claude
Problem Description
The Linux install script template uses incorrect template variable names for the new nested directory structure, causing permission commands to fail on fresh installations.
Error Message:
chown: cannot access '/etc/redflag/config.json': No such file or directory
Root Cause:
- Template defines
AgentConfigDir: "/etc/redflag/agent"(new nested path) - But uses
{{.ConfigDir}}(old flat path) in permission commands - Config is created at
/etc/redflag/agent/config.jsonbut script tries to chown/etc/redflag/config.json
Files Modified
aggregator-server/internal/services/templates/install/scripts/linux.sh.tmpl- Line 310:
{{.ConfigDir}}→{{.AgentConfigDir}} - Line 311:
{{.ConfigDir}}→{{.AgentConfigDir}} - Line 312:
{{.ConfigDir}}→{{.AgentConfigDir}} - Line 315:
{{.LogDir}}→{{.AgentLogDir}}
- Line 310:
Verification
After fix, fresh install should complete without "cannot access file" errors.
Impact
- Fixed: Fresh installations will now complete successfully
- Why P0: Blocks ALL new agent installations
- Status: Resolved
Note: This bug was discovered during active testing, not from backlog. Fixed immediately upon discovery.