From cd6d35331c18d9b0f5ee98aef6ed5a214ff84b27 Mon Sep 17 00:00:00 2001 From: Roi Feng <37480123+Rayzggz@users.noreply.github.com> Date: Fri, 7 Mar 2025 19:57:12 -0500 Subject: [PATCH] fix: Get all modules when make --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index dd7320b..31dc599 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ all: build build: + go mod download go build -o server_torii . clean: @@ -25,15 +26,15 @@ install: build @echo "[Install]" >> $(SERVICE_FILE) @echo "WantedBy=multi-user.target" >> $(SERVICE_FILE) - sudo systemctl daemon-reload - sudo systemctl enable server_torii - sudo systemctl start server_torii + systemctl daemon-reload + systemctl enable server_torii + systemctl start server_torii uninstall: - sudo systemctl stop server_torii - sudo systemctl disable server_torii - sudo rm -f /etc/systemd/system/server_torii.service - sudo systemctl daemon-reload + systemctl stop server_torii + systemctl disable server_torii + rm -f /etc/systemd/system/server_torii.service + systemctl daemon-reload reinstall: uninstall install