Files
shannon/entrypoint.sh
ezl-keygraph c408eabc62 feat: migrate from MCP tools to CLI based tools (#252)
* feat: migrate from MCP tools to CLI tools

* fix: restore browser action emoji formatters for CLI output

Adapt formatBrowserAction for playwright-cli commands, replacing the old
mcp__playwright__browser_* tool name matching removed during migration.
2026-03-22 13:12:24 +05:30

19 lines
524 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
TARGET_UID="${SHANNON_HOST_UID:-}"
TARGET_GID="${SHANNON_HOST_GID:-}"
CURRENT_UID=$(id -u pentest 2>/dev/null || echo "")
if [ -n "$TARGET_UID" ] && [ "$TARGET_UID" != "$CURRENT_UID" ]; then
deluser pentest 2>/dev/null || true
delgroup pentest 2>/dev/null || true
addgroup -g "$TARGET_GID" pentest
adduser -u "$TARGET_UID" -G pentest -s /bin/bash -D pentest
chown -R pentest:pentest /app/sessions /app/deliverables /app/workspaces /tmp/.claude
fi
exec su -m pentest -c "exec $*"