mirror of
https://github.com/BillyOutlast/pentestagent-podman.git
synced 2026-07-01 21:24:07 -04:00
Add WorkingDir configuration for runtime containers and provide workaround instructions
This commit is contained in:
@@ -258,6 +258,24 @@ journalctl -u litellm -n 200 --no-pager
|
||||
podman logs litellm 2>/dev/null || true
|
||||
```
|
||||
|
||||
If you see `FileNotFoundError: ... 'loot/reports'`, the process is running with an invalid current working directory. This stack now sets `WorkingDir=/app` for runtime containers.
|
||||
|
||||
Immediate workaround on existing running container:
|
||||
|
||||
```bash
|
||||
podman exec -it -w /app pentestagent-kali sh -lc 'mkdir -p loot/reports loot/artifacts/screenshots && python3 -m pentestagent run -t shad-base.com "Use terminal tool once to run: echo TOOL_OK, then summarize."'
|
||||
```
|
||||
|
||||
Persistent fix (system scope / LXC root):
|
||||
|
||||
```bash
|
||||
cp quadlet/pentestagent.container /etc/containers/systemd/pentestagent.container
|
||||
cp quadlet/pentestagent-kali.container /etc/containers/systemd/pentestagent-kali.container
|
||||
./scripts/prepare-system-quadlet.sh
|
||||
systemctl daemon-reload
|
||||
systemctl restart pentestagent.service pentestagent-kali.service
|
||||
```
|
||||
|
||||
## Ollama profile switch (ROCm ↔ CPU fallback)
|
||||
|
||||
This repo includes both:
|
||||
|
||||
Reference in New Issue
Block a user