aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-10-19 10:38:21 +0200
committerDennis Eriksen <d@ennis.no>2019-10-19 10:38:21 +0200
commitdfa175a2386823a63fd5ce3172f7da89ca9b6f6d (patch)
tree7891e676330ca171493042ba09a136284de2a526 /mkosi.postinst
downloadmkosi-filebin-dfa175a2386823a63fd5ce3172f7da89ca9b6f6d.tar.gz
initial commit
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
new file mode 100755
index 0000000..942ccb4
--- /dev/null
+++ b/mkosi.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -ex
+
+export DEBIAN_FRONTEND=noninteractive
+
+# locales
+sed -i 's/# en_IE.UTF-8 UTF-8/en_IE.UTF-8 UTF-8/' /etc/locale.gen
+locale-gen
+
+useradd --system --shell /usr/sbin/nologin --home-dir /var/lib/filebin --create-home --user-group filebin
+
+mkdir /tmp/filebin /var/log/filebin
+chown filebin: /tmp/filebin /var/log/filebin
+chmod 700 /tmp/filebin /var/log/filebin
+
+systemctl enable filebin.service