mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-05-27 02:43:09 +02:00
77e300d52a
* feat: mount user repo as read-only with deliverables bind-mount overlay * feat: add playground and .playwright-cli overlay mounts * feat: add filesystem context to pipeline-testing prompts * fix: use explicit REPO_PATH in filesystem prompt for clarity * fix: update filesystem prompts with playground notes and absolute screenshot paths * feat: namespace writable overlays under .shannon/ to avoid polluting host repo * refactor: rename playground to scratchpad * fix: redirect playwright-cli output to writable .shannon/ overlay * fix: pre-create .shannon/ overlay mount points for Linux compatibility * fix: exclude nested node_modules and dist from Docker build context * fix: enforce LF line endings for shell scripts on Windows
19 lines
506 B
Bash
Executable File
19 lines
506 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/workspaces /tmp/.claude
|
|
fi
|
|
|
|
exec su -m pentest -c "exec $*"
|