5b0b5eeac6
aria-setup.sh Von 142 Zeilen auf 50 zurechtgestutzt. Alle OpenClaw-Schritte raus (openclaw.json, exec-approvals, Permissions fuer .openclaw, doctor). Es bleibt nur der SSH-Key-Setup fuer aria-wohnung — Brain + Proxy teilen sich denselben Key via Bind-Mount aria-data/ssh/. init.sh Legt jetzt aria-data/brain/data + aria-data/brain/qdrant an damit die Bind-Mounts beim ersten docker compose up nicht ins Leere zeigen. OpenClaw Tutorial _ MI.pdf Geloescht — OpenClaw ist abgerissen, das Tutorial gehoert nicht mehr ins Repo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
53 lines
1.9 KiB
Bash
Executable File
53 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# ════════════════════════════════════════════════
|
|
# ARIA — Ersteinrichtung nach docker compose up
|
|
#
|
|
# OpenClaw (aria-core) ist abgerissen — das Setup macht jetzt
|
|
# nur noch den SSH-Key fuer den Zugriff auf die VM (aria-wohnung).
|
|
# Brain + Proxy teilen sich denselben Key, beide haben aria-data/ssh
|
|
# als Volume gemountet.
|
|
# ════════════════════════════════════════════════
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
SSH_DIR="$SCRIPT_DIR/aria-data/ssh"
|
|
|
|
echo "=== ARIA Setup ==="
|
|
|
|
mkdir -p "$SSH_DIR"
|
|
|
|
if [ ! -f "$SSH_DIR/id_ed25519" ]; then
|
|
echo "Generiere SSH-Key fuer aria-wohnung..."
|
|
ssh-keygen -t ed25519 -f "$SSH_DIR/id_ed25519" -N "" -C "aria@aria-wohnung"
|
|
cat > "$SSH_DIR/config" << 'SSHEOF'
|
|
Host aria-wohnung
|
|
HostName host.docker.internal
|
|
User root
|
|
IdentityFile ~/.ssh/id_ed25519
|
|
StrictHostKeyChecking accept-new
|
|
SSHEOF
|
|
chmod 600 "$SSH_DIR/id_ed25519"
|
|
chmod 644 "$SSH_DIR/id_ed25519.pub" "$SSH_DIR/config"
|
|
|
|
# Public Key direkt in /root/.ssh/authorized_keys eintragen
|
|
# (Script laeuft als root auf der VM aria-wohnung)
|
|
if [ -w /root/.ssh ] || [ -w /root ]; then
|
|
mkdir -p /root/.ssh
|
|
chmod 700 /root/.ssh
|
|
cat "$SSH_DIR/id_ed25519.pub" >> /root/.ssh/authorized_keys
|
|
chmod 600 /root/.ssh/authorized_keys
|
|
echo " Public Key in /root/.ssh/authorized_keys eingetragen."
|
|
else
|
|
echo " Hinweis: konnte /root/.ssh/authorized_keys nicht schreiben."
|
|
echo " Pubkey manuell eintragen:"
|
|
cat "$SSH_DIR/id_ed25519.pub"
|
|
fi
|
|
else
|
|
echo "SSH-Key existiert bereits — uebersprungen."
|
|
fi
|
|
|
|
echo "=== Setup fertig ==="
|
|
echo ""
|
|
echo "Naechster Schritt: docker compose up -d"
|
|
echo "Test: docker exec aria-brain ssh aria-wohnung hostname"
|