|
|
@ -38,8 +38,12 @@ echo -e "${GN} Updating (Building) to ${VAULT} (Patience)... ${CL}"
|
|
|
|
git clone https://github.com/dani-garcia/vaultwarden &>/dev/null
|
|
|
|
git clone https://github.com/dani-garcia/vaultwarden &>/dev/null
|
|
|
|
cd vaultwarden
|
|
|
|
cd vaultwarden
|
|
|
|
cargo build --features "sqlite,mysql,postgresql" --release &>/dev/null
|
|
|
|
cargo build --features "sqlite,mysql,postgresql" --release &>/dev/null
|
|
|
|
cp target/release/vaultwarden /opt/vaultwarden/bin/
|
|
|
|
DIR=/usr/bin/vaultwarden
|
|
|
|
|
|
|
|
if [ -d "$DIR" ]; then
|
|
|
|
|
|
|
|
cp target/release/vaultwarden /usr/bin/
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cp target/release/vaultwarden /opt/vaultwarden/bin/
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo -e "${GN} Starting Vaultwarden ${VAULT}... ${CL}"
|
|
|
|
echo -e "${GN} Starting Vaultwarden ${VAULT}... ${CL}"
|
|
|
|
systemctl start vaultwarden.service
|
|
|
|
systemctl start vaultwarden.service
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|