summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-05-16 14:30:44 +0200
committerxengineering <me@xengineering.eu>2022-05-16 14:30:44 +0200
commitc8e73c5c12031f6bfff1bc5d33333124578ea61b (patch)
tree6d0ec1e3f1536194987c3a3e312b12b39b665372
parent8f16d578c7f103dbf891d43901c1d08442e9efe6 (diff)
downloadwebiot-c8e73c5c12031f6bfff1bc5d33333124578ea61b.tar
webiot-c8e73c5c12031f6bfff1bc5d33333124578ea61b.tar.zst
webiot-c8e73c5c12031f6bfff1bc5d33333124578ea61b.zip
Implement install of systemd files
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 57d274f..0ce76c2 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ install: all
install -Dm 755 build/$(PROGRAM) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
mkdir -p $(DESTDIR)/etc/$(PROGRAM)
install -Dm 644 config.json $(DESTDIR)/etc/$(PROGRAM)/
+ install -Dm 644 systemd/$(PROGRAM).service $(DESTDIR)$(PREFIX)/lib/systemd/system/$(PROGRAM).service
+ install -Dm 644 systemd/$(PROGRAM).sysusers $(DESTDIR)$(PREFIX)/lib/sysusers.d/$(PROGRAM).sysusers
debug:
go run main.go hs100.go -c private/config.json