diff options
Diffstat (limited to 'configuration/debian/tedge_mapper')
-rw-r--r-- | configuration/debian/tedge_mapper/postinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configuration/debian/tedge_mapper/postinst b/configuration/debian/tedge_mapper/postinst new file mode 100644 index 00000000..8140695e --- /dev/null +++ b/configuration/debian/tedge_mapper/postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +# Create a group "tedge-mapper" if not created before +if ! getent group tedge-mapper > /dev/null; then + addgroup --quiet --system tedge-mapper +fi + +# Create a user "tedge-mapper" if not created before +if ! getent passwd tedge-mapper > /dev/null; then + adduser --quiet --system --no-create-home --ingroup tedge-mapper --shell /usr/sbin/nologin tedge-mapper +fi + +#DEBHELPER# |