diff options
author | Dennis Eriksen <d@ennis.no> | 2019-11-15 22:39:07 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2019-11-15 22:39:07 +0100 |
commit | 76c8907a4cac4ef1eb04acd343bf156356aa2aa3 (patch) | |
tree | 8fbf5167024d1abbba81c8b1a2ecba37ef2d73e3 /mkosi.postinst | |
parent | removing a couple of unused files, and adding gitignore (diff) | |
download | mkosi-bitwarden_rs-76c8907a4cac4ef1eb04acd343bf156356aa2aa3.tar.gz |
bitwarden_rs now builds. Hopefully just need to configure it now.
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-x | mkosi.postinst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mkosi.postinst b/mkosi.postinst index 4fcdfc3..6cd5334 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -1,9 +1,9 @@ #!/bin/sh +mv /bitwarden_rs/bitwarden_rs /usr/local/bin/ -export ROCKET_ENV=staging \ - ROCKET_PORT=8080 \ - ROCKET_WORKERS=10 +mkdir /var/lib/bitwarden_rs +useradd -d /var/lib/bitwarden_rs --system bitwarden_rs +chown -R bitwarden_rs: /var/lib/bitwarden_rs + +systemctl enable bitwarden_rs -mkdir /web-vault -cp -r /root/web-vault/* /web-vault/. || echo "build" -/root/app/target/release/bitwarden_rs || echo "build" |