]> err.no Git - yubikey-server-c/commitdiff
Add user in postinst
authorTollef Fog Heen <tfheen@err.no>
Mon, 26 Oct 2009 10:02:06 +0000 (11:02 +0100)
committerTollef Fog Heen <tfheen@err.no>
Mon, 26 Oct 2009 10:02:06 +0000 (11:02 +0100)
debian/yubikey-server-c.postinst [new file with mode: 0644]

diff --git a/debian/yubikey-server-c.postinst b/debian/yubikey-server-c.postinst
new file mode 100644 (file)
index 0000000..a0dedd8
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh -e
+
+if ! getent passwd yubikeyd> /dev/null; then
+   useradd -U -r -d /nonexistent -g yubikeyd yubikeyd
+fi
+
+#DEBHELPER#