From 314a1604588dbd83d33dca3bde518f3685e575ba Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 12 Mar 2026 15:23:55 +0100 Subject: [PATCH] feat: auto-restart codeman-web service after update if running Co-Authored-By: Claude Opus 4.6 --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2eb0d07e..75dda9f8 100755 --- a/install.sh +++ b/install.sh @@ -1283,7 +1283,15 @@ update() { npm run build --quiet 2>/dev/null || npm run build success "Updated to $(node -e "console.log(require('./package.json').version)")" echo "" - echo -e " ${DIM}Restart codeman web to use the new version.${NC}" + + # Auto-restart systemd service if it's running, otherwise tell the user + if systemctl --user is-active codeman-web.service &>/dev/null; then + info "Restarting codeman-web service..." + systemctl --user restart codeman-web.service + success "codeman-web service restarted" + else + echo -e " ${DIM}Restart codeman web to use the new version.${NC}" + fi echo "" }