chiark / gitweb /
ensure mtu is in the ipif substitution set
[hippotat.git] / debian / hippotat.postinst
index a223771b25dce9bc7e6b9a9128e278ebfe9a4c4e..9419eea849c781d1723a56ee6b133ab8612604d3 100644 (file)
@@ -1,6 +1,13 @@
 #!/bin/sh
 set -e
-#DEBHELPER#
-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/secrets.d
+test -d $pd || \
+install -m 750 -o root -g Debian-hippotat -d $pd
+
+#DEBHELPER#