chiark / gitweb /
config: sort out directory handling
[hippotat.git] / debian / hippotat.postinst
index b406e55ccab7b9e628121651c58e41ad81d158b2..5cf0fafa2582214bc9de7e092e23625005fdc090 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#