feat: add update target to Makefile for server binary updates
This commit is contained in:
9
Makefile
9
Makefile
@@ -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!"
|
||||||
|
|||||||
Reference in New Issue
Block a user