Skip to content

Commit 34627d2

Browse files
committed
chore: improve installer doctor flow
1 parent b0d3ced commit 34627d2

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

public/install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ exec node "${repo_dir}/dist/entry.js" "\$@"
502502
EOF
503503
chmod +x "$HOME/.local/bin/clawdbot"
504504
echo -e "${SUCCESS}${NC} Clawdbot wrapper installed to \$HOME/.local/bin/clawdbot"
505+
echo -e "${INFO}i${NC} This checkout uses pnpm. For deps, run: ${INFO}pnpm install${NC} (avoid npm install in the repo)."
505506
}
506507

507508
# Install Clawdbot
@@ -660,8 +661,12 @@ EOF
660661
install_clawdbot
661662
fi
662663

663-
# Step 6: Run doctor for migrations if upgrading
664-
if [[ "$is_upgrade" == "true" ]]; then
664+
# Step 6: Run doctor for migrations on upgrades and git installs
665+
local run_doctor_after=false
666+
if [[ "$is_upgrade" == "true" || "$INSTALL_METHOD" == "git" ]]; then
667+
run_doctor_after=true
668+
fi
669+
if [[ "$run_doctor_after" == "true" ]]; then
665670
run_doctor
666671
fi
667672

@@ -700,6 +705,12 @@ EOF
700705
fi
701706
fi
702707

708+
if command -v clawdbot &> /dev/null; then
709+
if clawdbot daemon status >/dev/null 2>&1; then
710+
echo -e "${INFO}i${NC} Gateway daemon detected; restart with: ${INFO}clawdbot daemon restart${NC}"
711+
fi
712+
fi
713+
703714
echo ""
704715
echo -e "FAQ: ${INFO}https://docs.clawd.bot/start/faq${NC}"
705716
}

0 commit comments

Comments
 (0)