aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-11-16 10:30:46 +0100
committerDennis Eriksen <d@ennis.no>2019-11-16 10:30:46 +0100
commitba7498ebe3f06db4881a7cc1cccecae38af2907a (patch)
treeb70198378afb924bc197e09df267ac87a5f5fb6b /mkosi.postinst
parentbitwarden_rs now builds. Hopefully just need to configure it now. (diff)
downloadmkosi-vaultwarden-ba7498ebe3f06db4881a7cc1cccecae38af2907a.tar.gz
This container now works. I have added a README, and a service-file, and tweaked some small things
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst7
1 files changed, 4 insertions, 3 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index 6cd5334..b0330d1 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -1,9 +1,10 @@
#!/bin/sh
-mv /bitwarden_rs/bitwarden_rs /usr/local/bin/
+mv /bitwarden_rs /usr/local/bin/
-mkdir /var/lib/bitwarden_rs
+mkdir /var/lib/bitwarden_rs /etc/bitwarden_rs
useradd -d /var/lib/bitwarden_rs --system bitwarden_rs
-chown -R bitwarden_rs: /var/lib/bitwarden_rs
+chown -R bitwarden_rs: /var/lib/bitwarden_rs /etc/bitwarden_rs
+chmod 700 /var/lib/bitwarden_rs /etc/bitwarden_rs
systemctl enable bitwarden_rs