diff options
author | Dennis Eriksen <d@ennis.no> | 2019-11-16 10:30:46 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2019-11-16 10:30:46 +0100 |
commit | ba7498ebe3f06db4881a7cc1cccecae38af2907a (patch) | |
tree | b70198378afb924bc197e09df267ac87a5f5fb6b /mkosi.postinst | |
parent | bitwarden_rs now builds. Hopefully just need to configure it now. (diff) | |
download | mkosi-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-x | mkosi.postinst | 7 |
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 |