From 0a99d63c71b1a714571bd77c10a2a3dfe6caf04e Mon Sep 17 00:00:00 2001 From: Christoph Kluenter Date: Thu, 24 Sep 2015 20:36:22 +0200 Subject: [pkg] include script to create user-db See PR 279 --- debian/soledad-server.postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/soledad-server.postinst (limited to 'debian/soledad-server.postinst') diff --git a/debian/soledad-server.postinst b/debian/soledad-server.postinst new file mode 100644 index 00000000..19a2b888 --- /dev/null +++ b/debian/soledad-server.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +export PATH=/bin:/usr/bin:/sbin:/usr/sbin + +id soledad-admin > /dev/null +RET=$? + +if [ ! $RET -eq 0 ]; then + adduser --system soledad-admin --home /srv/leap/ --disabled-password --shell /bin/sh --ingroup nogroup +fi + -- cgit v1.2.3