From de549cac0571d4495271329fe7b14734bc358c14 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Thu, 12 Feb 2026 12:37:50 -0500 Subject: [PATCH] Update openclaw/install.sh Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- openclaw/install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openclaw/install.sh b/openclaw/install.sh index 89e7860a..bc4de3e6 100755 --- a/openclaw/install.sh +++ b/openclaw/install.sh @@ -992,14 +992,17 @@ start_worker() { # Write PID file for future management local pid_file="${HOME}/.claude-mem/worker.pid" mkdir -p "${HOME}/.claude-mem" - node -e " + # Write PID file for future management + local pid_file="${HOME}/.claude-mem/worker.pid" + mkdir -p "${HOME}/.claude-mem" + INSTALLER_PID_FILE="$pid_file" INSTALLER_WORKER_PID="$WORKER_PID" node -e " const info = { - pid: ${WORKER_PID}, + pid: parseInt(process.env.INSTALLER_WORKER_PID, 10), port: 37777, startedAt: new Date().toISOString(), version: 'installer' }; - require('fs').writeFileSync('${pid_file}', JSON.stringify(info, null, 2)); + require('fs').writeFileSync(process.env.INSTALLER_PID_FILE, JSON.stringify(info, null, 2)); " success "Worker process started (PID: ${WORKER_PID})"