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.
This commit is contained in:
Saxon Nelson-Milton 2023-09-20 21:55:47 +00:00
parent e4263464ef
commit 79d3e7280b
1 changed files with 2 additions and 3 deletions

View File

@ -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