aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-11-16 13:52:27 +0100
committerDennis Eriksen <d@ennis.no>2019-11-16 13:52:27 +0100
commit06a97a881807752dffb136d86d5b27d8f9ae6ac1 (patch)
tree09d75b62202c983b169976eb152dcde5411ba567 /mkosi.postinst
parentThis container now works. I have added a README, and a service-file, and twea... (diff)
downloadmkosi-vaultwarden-06a97a881807752dffb136d86d5b27d8f9ae6ac1.tar.gz
fuck ubuntus motd
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst11
1 files changed, 10 insertions, 1 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index b0330d1..1e2a735 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -1,4 +1,14 @@
#!/bin/sh
+set -ex
+export DEBIAN_FRONTEND=noninteractive
+
+# motd
+chmod 644 /etc/update-motd.d/*
+systemctl mask motd-news.service
+systemctl mask motd-news.timer
+
+
+# set up bitwarden
mv /bitwarden_rs /usr/local/bin/
mkdir /var/lib/bitwarden_rs /etc/bitwarden_rs
@@ -7,4 +17,3 @@ chown -R bitwarden_rs: /var/lib/bitwarden_rs /etc/bitwarden_rs
chmod 700 /var/lib/bitwarden_rs /etc/bitwarden_rs
systemctl enable bitwarden_rs
-