chiark / gitweb /
config: sort out directory handling
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 15:13:03 +0000 (16:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 15:13:03 +0000 (16:13 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/hippotat.dirs [new file with mode: 0644]
debian/hippotat.postinst

diff --git a/debian/hippotat.dirs b/debian/hippotat.dirs
new file mode 100644 (file)
index 0000000..a0781a0
--- /dev/null
@@ -0,0 +1,2 @@
+/etc/hippotat
+/etc/hippotat/config.d
index b406e55..5cf0faf 100644 (file)
@@ -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#