mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 05:57:28 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -14,7 +14,7 @@ RUN corepack enable \
|
||||
&& pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
COPY scripts/docker/cleanup-smoke/run.sh /usr/local/bin/moltbot-cleanup-smoke
|
||||
RUN chmod +x /usr/local/bin/moltbot-cleanup-smoke
|
||||
COPY scripts/docker/cleanup-smoke/run.sh /usr/local/bin/openclaw-cleanup-smoke
|
||||
RUN chmod +x /usr/local/bin/openclaw-cleanup-smoke
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/moltbot-cleanup-smoke"]
|
||||
ENTRYPOINT ["/usr/local/bin/openclaw-cleanup-smoke"]
|
||||
|
||||
@@ -3,30 +3,30 @@ set -euo pipefail
|
||||
|
||||
cd /repo
|
||||
|
||||
export CLAWDBOT_STATE_DIR="/tmp/moltbot-test"
|
||||
export CLAWDBOT_CONFIG_PATH="${CLAWDBOT_STATE_DIR}/moltbot.json"
|
||||
export OPENCLAW_STATE_DIR="/tmp/openclaw-test"
|
||||
export OPENCLAW_CONFIG_PATH="${OPENCLAW_STATE_DIR}/openclaw.json"
|
||||
|
||||
echo "==> Seed state"
|
||||
mkdir -p "${CLAWDBOT_STATE_DIR}/credentials"
|
||||
mkdir -p "${CLAWDBOT_STATE_DIR}/agents/main/sessions"
|
||||
echo '{}' >"${CLAWDBOT_CONFIG_PATH}"
|
||||
echo 'creds' >"${CLAWDBOT_STATE_DIR}/credentials/marker.txt"
|
||||
echo 'session' >"${CLAWDBOT_STATE_DIR}/agents/main/sessions/sessions.json"
|
||||
mkdir -p "${OPENCLAW_STATE_DIR}/credentials"
|
||||
mkdir -p "${OPENCLAW_STATE_DIR}/agents/main/sessions"
|
||||
echo '{}' >"${OPENCLAW_CONFIG_PATH}"
|
||||
echo 'creds' >"${OPENCLAW_STATE_DIR}/credentials/marker.txt"
|
||||
echo 'session' >"${OPENCLAW_STATE_DIR}/agents/main/sessions/sessions.json"
|
||||
|
||||
echo "==> Reset (config+creds+sessions)"
|
||||
pnpm moltbot reset --scope config+creds+sessions --yes --non-interactive
|
||||
pnpm openclaw reset --scope config+creds+sessions --yes --non-interactive
|
||||
|
||||
test ! -f "${CLAWDBOT_CONFIG_PATH}"
|
||||
test ! -d "${CLAWDBOT_STATE_DIR}/credentials"
|
||||
test ! -d "${CLAWDBOT_STATE_DIR}/agents/main/sessions"
|
||||
test ! -f "${OPENCLAW_CONFIG_PATH}"
|
||||
test ! -d "${OPENCLAW_STATE_DIR}/credentials"
|
||||
test ! -d "${OPENCLAW_STATE_DIR}/agents/main/sessions"
|
||||
|
||||
echo "==> Recreate minimal config"
|
||||
mkdir -p "${CLAWDBOT_STATE_DIR}/credentials"
|
||||
echo '{}' >"${CLAWDBOT_CONFIG_PATH}"
|
||||
mkdir -p "${OPENCLAW_STATE_DIR}/credentials"
|
||||
echo '{}' >"${OPENCLAW_CONFIG_PATH}"
|
||||
|
||||
echo "==> Uninstall (state only)"
|
||||
pnpm moltbot uninstall --state --yes --non-interactive
|
||||
pnpm openclaw uninstall --state --yes --non-interactive
|
||||
|
||||
test ! -d "${CLAWDBOT_STATE_DIR}"
|
||||
test ! -d "${OPENCLAW_STATE_DIR}"
|
||||
|
||||
echo "OK"
|
||||
|
||||
Reference in New Issue
Block a user