Add docs and project files - force for Culurien
This commit is contained in:
43
docs/3_BACKLOG/P0-007_Install-Script-Path-Variables.md
Normal file
43
docs/3_BACKLOG/P0-007_Install-Script-Path-Variables.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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.json` but 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}}`
|
||||
|
||||
## 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.
|
||||
Reference in New Issue
Block a user