File tree Expand file tree Collapse file tree 4 files changed +34
-18
lines changed
Expand file tree Collapse file tree 4 files changed +34
-18
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,26 @@ curl -fsSL https://raw.githubusercontent.com/pasogott/clawdbot-ansible/main/inst
3333
3434## Post-Install
3535
36+ After installation completes, switch to the clawdbot user:
37+
3638``` bash
37- # 1. Connect to Tailscale
38- sudo tailscale up
39+ sudo -i -u clawdbot
40+ ```
3941
40- # 2. Configure Clawdbot
41- sudo nano /home/clawdbot/.clawdbot/config.yml
42+ This will show you the next steps for:
43+ - Configuring Clawdbot
44+ - Logging into your messaging provider (WhatsApp/Telegram/Signal)
45+ - Testing the gateway
46+ - Connecting Tailscale
4247
43- # 3. Login as clawdbot user
44- sudo su - clawdbot
48+ You can also manage the service:
49+
50+ ``` bash
51+ # Check status
52+ sudo systemctl status clawdbot
53+
54+ # View logs
55+ sudo journalctl -u clawdbot -f
4556clawdbot login
4657
4758# 4. Check status
Original file line number Diff line number Diff line change @@ -90,5 +90,4 @@ echo ""
9090cd /
9191rm -rf " $TEMP_DIR "
9292
93- # The run-playbook.sh script will automatically launch /tmp/clawdbot-setup.sh
94- # which handles the user switch and displays setup instructions
93+ # run-playbook.sh will display instructions to switch to clawdbot user
Original file line number Diff line number Diff line change 9797 line : ' [ -f ~/.clawdbot-welcome ] && source ~/.clawdbot-welcome'
9898 state : present
9999
100- - name : Signal playbook completion
101- ansible.builtin.set_fact :
102- clawdbot_setup_ready : true
100+ - name : Notify that playbook is complete
101+ ansible.builtin.debug :
102+ msg : " ✅ Clawdbot installation complete! "
Original file line number Diff line number Diff line change 1010 PLAYBOOK_EXIT=$?
1111fi
1212
13- # After playbook completes successfully, switch to clawdbot user
13+ # After playbook completes successfully, show instructions
1414if [ $PLAYBOOK_EXIT -eq 0 ]; then
1515 echo " "
16- echo " 🚀 Switching to clawdbot user..."
16+ echo " ═══════════════════════════════════════════════════════════"
17+ echo " ✅ INSTALLATION COMPLETE!"
18+ echo " ═══════════════════════════════════════════════════════════"
19+ echo " "
20+ echo " 🔄 CHANGE USER NOW with:"
21+ echo " "
22+ echo " sudo -i -u clawdbot"
23+ echo " "
24+ echo " This will switch you to the clawdbot user and show"
25+ echo " the next setup steps (configuration, provider login, etc.)"
26+ echo " "
27+ echo " ═══════════════════════════════════════════════════════════"
1728 echo " "
18- sleep 1
19-
20- # The trick: replace current shell completely with sudo's shell
21- # Don't use exec alone - use it within a login command
22- exec sudo -u clawdbot -i
2329else
2430 echo " ❌ Playbook failed with exit code $PLAYBOOK_EXIT "
2531 exit $PLAYBOOK_EXIT
You can’t perform that action at this time.
0 commit comments