aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-06-26 13:51:02 +0200
committerGuillermo Serrahima <dev@vylion.com>2026-06-26 14:06:05 +0200
commit2f7fd7893ea201e73adfcb1eb61d195c6a9191b6 (patch)
tree9e37d8478cbc1a5fb2667b9a3e050aa42f22f4ed /scripts
parentcf3ee14ea9a73f193ecd60589c6b37050bc19919 (diff)
downloadsenia-2f7fd7893ea201e73adfcb1eb61d195c6a9191b6.tar.xz
senia-2f7fd7893ea201e73adfcb1eb61d195c6a9191b6.zip
add submodule-aware setup
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setup.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/setup.sh b/scripts/setup.sh
new file mode 100755
index 0000000..fbaf391
--- /dev/null
+++ b/scripts/setup.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -e
+cd "$(dirname "$0")/.."
+
+if git submodule update --init --recursive 2>/dev/null && [ -d private/contexts ]; then
+ echo "private content available: using real persona and contexts"
+else
+ echo "private content not accessible: generating placeholders"
+ mkdir -p private/contexts
+ # create dummy persona file
+ touch private/CLAUDE.md
+ # contexts/ stays empty; directory just needs to exist for the mount
+fi
+
+echo "setup complete. run 'docker compose -f docker/compose.yml build' next."