From c612bfefcd83492cabe8284caa934b975da98fce Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 2 Feb 2026 17:14:48 +0100 Subject: [PATCH] Fetch Web-Vault directly to target dir Simplify the Web-Vault update flow by creating /opt/vaultwarden/web-vault and calling fetch_and_deploy_gh_release with that path as the deployment target. Removes temporary directory creation, move and cleanup (mktemp/mv/rm -rf) and ensures the destination exists before downloading. Ownership and the success message are preserved. --- ct/vaultwarden.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index d12cbc979..ee7751176 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -74,11 +74,9 @@ function update_script() { msg_info "Updating Web-Vault to $WVRELEASE" rm -rf /opt/vaultwarden/web-vault + mkdir -p /opt/vaultwarden/web-vault - TEMP_DIR=$(mktemp -d) - fetch_and_deploy_gh_release "vaultwarden_webvault" "dani-garcia/bw_web_builds" "prebuild" "latest" "$TEMP_DIR" "bw_web_*.tar.gz" - mv "$TEMP_DIR/web-vault" /opt/vaultwarden/web-vault - rm -rf "$TEMP_DIR" + fetch_and_deploy_gh_release "vaultwarden_webvault" "dani-garcia/bw_web_builds" "prebuild" "latest" "/opt/vaultwarden/web-vault" "bw_web_*.tar.gz" chown -R root:root /opt/vaultwarden/web-vault/ msg_ok "Updated Web-Vault to ${WVRELEASE}"