-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (29 loc) · 815 Bytes
/
setup.sh
File metadata and controls
executable file
·37 lines (29 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set -e
IMAGE="ghcr.io/mrelmida/aegis2:main"
COMPOSE_FILE="docker-compose.remote.yml"
echo "🐾 VexAI Setup"
echo ""
# Pull latest image
echo "Pulling latest image..."
docker pull "$IMAGE"
# Create volumes dirs
mkdir -p data/db data/users skills
# Run setup interactively
echo ""
echo "Starting setup wizard..."
docker run -it --rm \
--env-file .env \
-v "$(pwd)/data:/app/data" \
-v "$(pwd)/skills:/app/skills" \
"$IMAGE"
# Check if config was created
if [ ! -f data/config.json ]; then
echo "❌ Setup did not complete — data/config.json not found."
exit 1
fi
echo ""
echo "✅ Setup complete. Starting bot with docker compose..."
docker compose -f "$COMPOSE_FILE" up -d
echo ""
echo "🐾 VexAI is running! Use 'docker compose -f $COMPOSE_FILE logs -f' to follow logs."