feat: add update target to Makefile for server binary updates

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-28 18:03:05 +01:00
parent 126ec47b30
commit c1c4dc62fb

View File

@@ -46,3 +46,12 @@ uninstall:
rm -f $(INSTALL_DIR)/$(BINARY_NAME) rm -f $(INSTALL_DIR)/$(BINARY_NAME)
systemctl daemon-reload systemctl daemon-reload
@echo "Uninstalled." @echo "Uninstalled."
update:
@echo "Updating server..."
systemctl stop $(SERVICE_NAME)
cp $(BINARY_NAME) $(INSTALL_DIR)/
chmod +x $(INSTALL_DIR)/$(BINARY_NAME)
systemctl start $(SERVICE_NAME)
systemctl status $(SERVICE_NAME)
@echo "Server updated!"