From 5497c14d3a5784c39880d02ee267a15f4eaa30ef Mon Sep 17 00:00:00 2001 From: fukunee Date: Wed, 17 Jun 2026 17:07:05 +0800 Subject: [PATCH] Add script to locate OpenClaw config files --- .../find-openclaw-config@tx-ubuntu-ubuntu.sh | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 scripts/find-openclaw-config@tx-ubuntu-ubuntu.sh diff --git a/scripts/find-openclaw-config@tx-ubuntu-ubuntu.sh b/scripts/find-openclaw-config@tx-ubuntu-ubuntu.sh new file mode 100644 index 0000000..4571187 --- /dev/null +++ b/scripts/find-openclaw-config@tx-ubuntu-ubuntu.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +echo "=== Searching for OpenClaw config files ===" +echo "" +echo "--- Finding openclaw directories ---" +find / -type d -name "*openclaw*" -o -type d -name "*claw*" 2>/dev/null | grep -v proc | grep -v sys + +echo "" +echo "--- Looking for config files ---" +find / -type f \( -name "*.env" -o -name "config*" -o -name "*.yaml" -o -name "*.yml" -o -name "*.json" -o -name "*.toml" -o -name "*.ini" \) 2>/dev/null | grep -E "(openclaw|claw|model|ai)" | grep -v proc | grep -v sys + +echo "" +echo "--- Checking common paths ---" +for p in /opt/openclaw /opt/claw /etc/openclaw /etc/claw /home/*/openclaw /home/*/claw /root/openclaw /root/claw; do + if [ -d "$p" ]; then + echo "Found: $p" + ls -la "$p" 2>/dev/null + fi +done + +echo "" +echo "--- Checking Docker containers ---" +docker ps -a --filter "name=openclaw" --filter "name=claw" --format "table {{.Names}}\t{{.Image}}\t{{.Status}}" 2>/dev/null +docker ps -a --filter "name=openclaw" --filter "name=claw" --format "{{.Names}}" 2>/dev/null | while read container; do + echo "--- Inspecting $container ---" + docker inspect "$container" 2>/dev/null | grep -E '"Source":|"Destination":|"Env"' | head -20 +done + +echo "" +echo "--- Checking running processes ---" +ps aux | grep -i openclaw | grep -v grep + +echo "" +echo "--- Checking port 17581 process ---" +ss -tlnp | grep 17581