From ba7498ebe3f06db4881a7cc1cccecae38af2907a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sat, 16 Nov 2019 10:30:46 +0100 Subject: This container now works. I have added a README, and a service-file, and tweaked some small things --- mkosi.postinst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mkosi.postinst') 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 -- cgit v1.2.3