mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-01 18:30:35 +02:00
* 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.
19 lines
524 B
Bash
Executable File
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 $*"
|