aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lacme.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lacme.postinst')
-rwxr-xr-xdebian/lacme.postinst21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/lacme.postinst b/debian/lacme.postinst
new file mode 100755
index 0000000..536e37f
--- /dev/null
+++ b/debian/lacme.postinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ if ! getent passwd _lacme-www >/dev/null; then
+ adduser --force-badname --system \
+ --home /nonexistent --no-create-home \
+ --gecos "lacme www user" \
+ --quiet _lacme-www || true
+ fi
+ if ! getent passwd _lacme-client >/dev/null; then
+ adduser --force-badname --system \
+ --home /nonexistent --no-create-home \
+ --gecos "lacme client user" \
+ --quiet _lacme-client || true
+ fi
+fi
+
+#DEBHELPER#
+exit 0