From: Ian Jackson Date: Sun, 9 Apr 2017 15:13:03 +0000 (+0100) Subject: config: sort out directory handling X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/commitdiff_plain/708eda31e6d8c6fd0555a10eb3c9ef7cfebdd458 config: sort out directory handling Signed-off-by: Ian Jackson --- diff --git a/debian/hippotat.dirs b/debian/hippotat.dirs new file mode 100644 index 0000000..a0781a0 --- /dev/null +++ b/debian/hippotat.dirs @@ -0,0 +1,2 @@ +/etc/hippotat +/etc/hippotat/config.d diff --git a/debian/hippotat.postinst b/debian/hippotat.postinst index b406e55..5cf0faf 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 + +umask 077 + +pd=/etc/hippotat/passwords.d +test -d $pd || \ +install -m750 -o root -g Debian-hippotat $pd + #DEBHELPER#