-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·37 lines (29 loc) · 1.13 KB
/
uninstall.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.13 KB
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 -euo pipefail
# CameraClaw — Uninstall Script
# Called by Aegis when the skill is uninstalled.
# Tears down all Docker resources created by this skill.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "CameraClaw: Uninstalling..."
# Stop and remove all compose services
if command -v docker &>/dev/null && docker info &>/dev/null 2>&1; then
COMPOSE_FILE="$SCRIPT_DIR/docker-compose.yml"
if [ -f "$COMPOSE_FILE" ]; then
echo " Stopping Docker containers..."
docker compose -f "$COMPOSE_FILE" down --remove-orphans --timeout 10 2>/dev/null || true
fi
# Remove the openclaw:local image (it's large, ~4GB)
if docker image inspect openclaw:local &>/dev/null 2>&1; then
echo " Removing openclaw:local image..."
docker rmi openclaw:local 2>/dev/null || true
fi
# Clean up any dangling networks
docker network prune -f 2>/dev/null || true
fi
# Clean up media files
MEDIA_DIR="${HOME}/.aegis-ai/media/camera-claw"
if [ -d "$MEDIA_DIR" ]; then
echo " Removing media: $MEDIA_DIR"
rm -rf "$MEDIA_DIR"
fi
echo "CameraClaw: Uninstall complete."