From 79d3e7280b14b2510250def3d71f7241d7a8a022 Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Wed, 20 Sep 2023 21:55:47 +0000 Subject: [PATCH] vidforward: Remove RUN_SCRIPT_DIR parameter from Makefile This is no longer needed considering there's no longer a run script; instead we call the binary directly in the service file. --- cmd/vidforward/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/vidforward/Makefile b/cmd/vidforward/Makefile index 827e2a6e..e2d85612 100644 --- a/cmd/vidforward/Makefile +++ b/cmd/vidforward/Makefile @@ -3,7 +3,6 @@ USER := $(shell whoami) PATH := /usr/local/go/bin:$(PATH) BIN_NAME := vidforward BIN_DIR := /src/bitbucket.org/ausocean/av/cmd/$(BIN_NAME) -RUN_SCRIPT_DIR := $(BIN_DIR)/run.sh .SILENT:soft_copy_files .SILENT:hard_copy_files @@ -27,7 +26,7 @@ soft_copy_files: if [ -f /etc/systemd/system/$(BIN_NAME).service ] ; then \ echo "/etc/systemd/system/$(BIN_NAME).service left unmodified" ; \ else \ - bash create_service.sh $(RUN_SCRIPT_DIR) $(BIN_DIR); \ + bash create_service.sh $(BIN_DIR); \ fi systemctl enable $(BIN_NAME).service @@ -35,7 +34,7 @@ hard_copy_files: if [ -f /etc/systemd/system/$(BIN_NAME).service ] ; then \ echo "/etc/systemd/system/$(BIN_NAME).service overwritten" ; \ fi - bash create_service.sh $(RUN_SCRIPT_DIR) $(BIN_DIR) + bash create_service.sh $(BIN_DIR) systemctl enable $(BIN_NAME).service clean: as_root