From 2c9208a707a9216840bc0383fcb69e499a3a56a0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 11 Mar 2022 09:00:29 -0500 Subject: [PATCH] Update vaultwarden-install.sh --- setup/vaultwarden-install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/setup/vaultwarden-install.sh b/setup/vaultwarden-install.sh index f4697c2b..00be623b 100644 --- a/setup/vaultwarden-install.sh +++ b/setup/vaultwarden-install.sh @@ -94,6 +94,15 @@ pushd vaultwarden &>/dev/null cargo clean &>/dev/null cargo build --features sqlite --release &>/dev/null file target/release/vaultwarden &>/dev/null +cd .. +mkdir data +#cp ../../.env.template /etc/vaultwarden.env &>/dev/null +cp vaultwarden /usr/bin/vaultwarden &>/dev/null +chmod +x /usr/bin/vaultwarden &>/dev/null +useradd -m -d /var/lib/vaultwarden vaultwarden &>/dev/null +sudo cp -R data /var/lib/vaultwarden/ &>/dev/null +#cp -R web-vault /var/lib/vaultwarden/ &>/dev/null +chown -R vaultwarden:vaultwarden /var/lib/vaultwarden &>/dev/null echo -e "${CM}${CL} \r" VWRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest \ @@ -107,15 +116,6 @@ cp -R web-vault /var/lib/vaultwarden/ &>/dev/null echo -e "${CM}${CL} \r" echo -en "${GN} Create Systemd Service... " -cd .. -mkdir data -cp ../../.env.template /etc/vaultwarden.env &>/dev/null -cp vaultwarden /usr/bin/vaultwarden &>/dev/null -chmod +x /usr/bin/vaultwarden &>/dev/null -useradd -m -d /var/lib/vaultwarden vaultwarden &>/dev/null -sudo cp -R data /var/lib/vaultwarden/ &>/dev/null -cp -R web-vault /var/lib/vaultwarden/ &>/dev/null -chown -R vaultwarden:vaultwarden /var/lib/vaultwarden &>/dev/null service_path="/etc/systemd/system/vaultwarden.service" &>/dev/null