Updated Install Flow

This commit is contained in:
Michel Roegl-Brunner
2026-01-26 13:29:32 +01:00
parent 327b8b531f
commit ef7d1927c5
2 changed files with 22 additions and 34 deletions

View File

@@ -19,16 +19,9 @@ $STD apt-get install -y \
git
msg_ok "Installed Dependencies"
NODE_VERSION="24" setup_nodejs
NODE_VERSION="24" NODE_MODULE="clawdbot@latest" setup_nodejs
import_local_ip
fetch_and_deploy_gh_release "clawdbot" "clawdbot/clawdbot"
msg_info "Installing Clawdbot"
cd /opt/clawdbot
$STD npm install
msg_ok "Installed Clawdbot"
msg_info "Configuring Clawdbot"
mkdir -p /opt/clawdbot/data
cat <<EOF >/opt/clawdbot/.env
@@ -49,7 +42,7 @@ Type=simple
User=root
WorkingDirectory=/opt/clawdbot
EnvironmentFile=/opt/clawdbot/.env
ExecStart=/usr/bin/npm start
ExecStart=/usr/bin/clawdbot
Restart=on-failure
RestartSec=5