X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/477169b146487f743bcdf771b3ce1028cf72e313..d96f4d70037bcd739dd9674f4fb2f3d38abce956:/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#