summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--systemd/webiot.service13
-rw-r--r--systemd/webiot.sysusers1
3 files changed, 0 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 2c6bde8..bf557f2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-# vim: shiftwidth=4 tabstop=4 noexpandtab
-
DESTDIR="" # leave empty for the current system or provide a fakeroot here
PREFIX="/usr"
PROGRAM="webiot"
@@ -20,9 +18,6 @@ install: all
install -Dm 644 config.json $(DESTDIR)/etc/$(PROGRAM)/config.json
install -Dm 644 appdata/index.html.tmpl $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/index.html.tmpl
install -Dm 644 appdata/simple.css $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/simple.css
- 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).conf
debug:
go run *.go -c config.json -a appdata
-
diff --git a/systemd/webiot.service b/systemd/webiot.service
deleted file mode 100644
index 68f2186..0000000
--- a/systemd/webiot.service
+++ /dev/null
@@ -1,13 +0,0 @@
-
-[Unit]
-Description=An IoT webserver
-After=network.target
-
-[Service]
-User=webiot
-Group=webiot
-ExecStart=/usr/bin/webiot
-
-[Install]
-WantedBy=multi-user.target
-
diff --git a/systemd/webiot.sysusers b/systemd/webiot.sysusers
deleted file mode 100644
index 966fed9..0000000
--- a/systemd/webiot.sysusers
+++ /dev/null
@@ -1 +0,0 @@
-u webiot - "webiot daemon user"