summarylogtreecommitdiffstats
path: root/kvmd.install
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install7
1 files changed, 7 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install
new file mode 100644
index 000000000000..b77e1248ef50
--- /dev/null
+++ b/kvmd.install
@@ -0,0 +1,7 @@
+post_install() {
+ id kvmd &>/dev/null || useradd -r -c "The main Pi-KVM daemon" -s /sbin/nologin kvmd
+}
+
+post_remove() {
+ userdel kvmd &>/dev/null
+}