From a51d094b618b6b1704213e6b6d290f1501189f19 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 20 Oct 2020 22:23:35 +0200 Subject: [PATCH] create lemur user --- debian/eole-lemur.postinst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 debian/eole-lemur.postinst diff --git a/debian/eole-lemur.postinst b/debian/eole-lemur.postinst new file mode 100644 index 00000000..389aadac --- /dev/null +++ b/debian/eole-lemur.postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + # Make sure the administrative user exists + if ! getent passwd lemur > /dev/null; then + adduser --system --home /nonexistent --no-create-home --group --gecos "User for lemur" lemur --quiet + fi +fi + +exit 0