From 708eda31e6d8c6fd0555a10eb3c9ef7cfebdd458 Mon Sep 17 00:00:00 2001 Message-Id: <708eda31e6d8c6fd0555a10eb3c9ef7cfebdd458.1714642543.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 9 Apr 2017 16:13:03 +0100 Subject: [PATCH] config: sort out directory handling Organization: Straylight/Edgeware From: Ian Jackson Signed-off-by: Ian Jackson --- debian/hippotat.dirs | 2 ++ debian/hippotat.postinst | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 debian/hippotat.dirs 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# -- [mdw]