From c1c4dc62fb8bc72bed23374448f45e71cc5bdb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Monta=C3=B1es=20Ojados?= Date: Wed, 28 Jan 2026 18:03:05 +0100 Subject: [PATCH] feat: add `update` target to Makefile for server binary updates --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 8a17aaa..00becd7 100644 --- a/Makefile +++ b/Makefile @@ -46,3 +46,12 @@ uninstall: rm -f $(INSTALL_DIR)/$(BINARY_NAME) systemctl daemon-reload @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!"