From 783e7518f8708920be49f536d4e30f9a013edc03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sat, 3 May 2025 18:48:07 +0200 Subject: [PATCH] Fix access URL (#4199) --- ct/vaultwarden.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 49df27bfc..91b508a53 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -76,12 +76,12 @@ function update_script() { msg_ok "Stopped Vaultwarden" msg_info "Updating Web-Vault to $WVRELEASE" - $STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WVRELEASE/bw_web_$WVRELEASE.tar.gz - $STD tar -zxf bw_web_$WVRELEASE.tar.gz -C /opt/vaultwarden/ + $STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/"$WVRELEASE"/bw_web_"$WVRELEASE".tar.gz + $STD tar -zxf bw_web_"$WVRELEASE".tar.gz -C /opt/vaultwarden/ msg_ok "Updated Web-Vault" msg_info "Cleaning up" - rm bw_web_$WVRELEASE.tar.gz + rm bw_web_"$WVRELEASE".tar.gz msg_ok "Cleaned" msg_info "Starting Vaultwarden" @@ -94,7 +94,7 @@ function update_script() { if NEWTOKEN=$(whiptail --backtitle "Proxmox VE Helper Scripts" --passwordbox "Set the ADMIN_TOKEN" 10 58 3>&1 1>&2 2>&3); then if [[ -z "$NEWTOKEN" ]]; then exit; fi if ! command -v argon2 >/dev/null 2>&1; then $STD apt-get install -y argon2; fi - TOKEN=$(echo -n ${NEWTOKEN} | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e) + TOKEN=$(echo -n "${NEWTOKEN}" | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e) sed -i "s|ADMIN_TOKEN=.*|ADMIN_TOKEN='${TOKEN}'|" /opt/vaultwarden/.env if [[ -f /opt/vaultwarden/data/config.json ]]; then sed -i "s|\"admin_token\":.*|\"admin_token\": \"${TOKEN}\"|" /opt/vaultwarden/data/config.json @@ -112,4 +112,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:8000${CL}"