From 76c8907a4cac4ef1eb04acd343bf156356aa2aa3 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 15 Nov 2019 22:39:07 +0100 Subject: bitwarden_rs now builds. Hopefully just need to configure it now. --- mkosi.postinst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mkosi.postinst') 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" -- cgit v1.2.3