mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-23 04:46:26 +02:00
1f6dfd7e17
* feat: extract pipeline core for library consumption * fix: chmod workspace directory for container write access * fix: resolve playwright output dir relative to deliverables parent * feat: add multi-provider LLM support via ProviderConfig * fix: resolve model overrides via options.model, remove unused model env passthrough * fix: use ANTHROPIC_AUTH_TOKEN for custom base URL and router auth * fix: skip env-based credential validation when providerConfig is present * fix: support large UID/GID values for AD/LDAP users in container
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
|
|
userdel pentest 2>/dev/null || true
|
|
groupdel pentest 2>/dev/null || true
|
|
|
|
groupadd -g "$TARGET_GID" pentest
|
|
useradd -u "$TARGET_UID" -g pentest -s /bin/bash -M pentest
|
|
|
|
chown -R pentest:pentest /app/sessions /app/workspaces /tmp/.claude
|
|
fi
|
|
|
|
exec su -m pentest -c "exec $*"
|