aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-xmkosi.postinst12
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"