X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/477169b146487f743bcdf771b3ce1028cf72e313..e7f20f23664234d4a36c4af12439195fc36181b6:/debian/hippotat.postinst diff --git a/debian/hippotat.postinst b/debian/hippotat.postinst index b406e55..7954152 100644 --- a/debian/hippotat.postinst +++ b/debian/hippotat.postinst @@ -1,6 +1,13 @@ #!/bin/sh set -e -mkdir -p -m700 /etc/hippotat + adduser --system --group --force-badname --shell=/bin/bash \ - --home /etc/hippotat Debian-hippotat + --quiet --home /etc/hippotat Debian-hippotat + +umask 077 + +pd=/etc/hippotat/passwords.d +test -d $pd || \ +install -m 750 -o root -g Debian-hippotat -d $pd + #DEBHELPER#