diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2015-09-24 20:36:22 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-29 10:45:30 -0400 |
commit | 0a99d63c71b1a714571bd77c10a2a3dfe6caf04e (patch) | |
tree | b6cb02b8d481efde331fae4a7f3a552bc394d3c4 /debian/soledad-server.postinst | |
parent | 12119af36b2815a13565efcbf7d73629b06a4674 (diff) |
[pkg] include script to create user-db
See PR 279
Diffstat (limited to 'debian/soledad-server.postinst')
-rw-r--r-- | debian/soledad-server.postinst | 11 |
1 files changed, 11 insertions, 0 deletions
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 + |