From db565303112739520b3c1ae8bae881a7ee28473a Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 5 Nov 2023 12:19:09 +0100 Subject: [PATCH] Don't fail install if service cannot be stopped (does not exist yet) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 03e3a19..23e35ad 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ test-with-coverage: go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out install: - sudo systemctl stop edgeboxctl + sudo systemctl stop edgeboxctl || true sudo rm -rf /usr/local/bin/edgeboxctl /usr/local/sbin/edgeboctl /lib/systemd/system/edgeboxctl.service sudo cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl sudo cp ./bin/edgeboxctl /usr/local/sbin/edgeboxctl