diff options
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 |