mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 16:39:42 +02:00
feat: auto-restart codeman-web service after update if running
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+9
-1
@@ -1283,7 +1283,15 @@ update() {
|
|||||||
npm run build --quiet 2>/dev/null || npm run build
|
npm run build --quiet 2>/dev/null || npm run build
|
||||||
success "Updated to $(node -e "console.log(require('./package.json').version)")"
|
success "Updated to $(node -e "console.log(require('./package.json').version)")"
|
||||||
echo ""
|
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 ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user