Update entrypoint.sh
Browse files- entrypoint.sh +9 -0
entrypoint.sh
CHANGED
|
@@ -81,6 +81,15 @@ if [ -f /app/security-check.sh ]; then
|
|
| 81 |
sh /app/security-check.sh || true
|
| 82 |
fi
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
# ----------------------------------------------------------------
|
| 85 |
# Auto-approve pending device pairings (background)
|
| 86 |
# ----------------------------------------------------------------
|
|
|
|
| 81 |
sh /app/security-check.sh || true
|
| 82 |
fi
|
| 83 |
|
| 84 |
+
# ----------------------------------------------------------------
|
| 85 |
+
# Migrate legacy state from older OpenClaw versions (required by new releases)
|
| 86 |
+
# ----------------------------------------------------------------
|
| 87 |
+
log "Running openclaw doctor --fix (state migration)..."
|
| 88 |
+
timeout 180 openclaw doctor --fix --non-interactive </dev/null \
|
| 89 |
+
|| timeout 180 openclaw doctor --fix </dev/null \
|
| 90 |
+
|| warn "openclaw doctor failed - gateway may refuse to start"
|
| 91 |
+
log "Doctor step done."
|
| 92 |
+
|
| 93 |
# ----------------------------------------------------------------
|
| 94 |
# Auto-approve pending device pairings (background)
|
| 95 |
# ----------------------------------------------------------------
|