Skip to content

Commit 783e751

Browse files
authored
Fix access URL (#4199)
1 parent 64595b0 commit 783e751

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ct/vaultwarden.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ function update_script() {
7676
msg_ok "Stopped Vaultwarden"
7777

7878
msg_info "Updating Web-Vault to $WVRELEASE"
79-
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WVRELEASE/bw_web_$WVRELEASE.tar.gz
80-
$STD tar -zxf bw_web_$WVRELEASE.tar.gz -C /opt/vaultwarden/
79+
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/"$WVRELEASE"/bw_web_"$WVRELEASE".tar.gz
80+
$STD tar -zxf bw_web_"$WVRELEASE".tar.gz -C /opt/vaultwarden/
8181
msg_ok "Updated Web-Vault"
8282

8383
msg_info "Cleaning up"
84-
rm bw_web_$WVRELEASE.tar.gz
84+
rm bw_web_"$WVRELEASE".tar.gz
8585
msg_ok "Cleaned"
8686

8787
msg_info "Starting Vaultwarden"
@@ -94,7 +94,7 @@ function update_script() {
9494
if NEWTOKEN=$(whiptail --backtitle "Proxmox VE Helper Scripts" --passwordbox "Set the ADMIN_TOKEN" 10 58 3>&1 1>&2 2>&3); then
9595
if [[ -z "$NEWTOKEN" ]]; then exit; fi
9696
if ! command -v argon2 >/dev/null 2>&1; then $STD apt-get install -y argon2; fi
97-
TOKEN=$(echo -n ${NEWTOKEN} | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e)
97+
TOKEN=$(echo -n "${NEWTOKEN}" | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e)
9898
sed -i "s|ADMIN_TOKEN=.*|ADMIN_TOKEN='${TOKEN}'|" /opt/vaultwarden/.env
9999
if [[ -f /opt/vaultwarden/data/config.json ]]; then
100100
sed -i "s|\"admin_token\":.*|\"admin_token\": \"${TOKEN}\"|" /opt/vaultwarden/data/config.json
@@ -112,4 +112,4 @@ description
112112
msg_ok "Completed Successfully!\n"
113113
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
114114
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
115-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"
115+
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:8000${CL}"

0 commit comments

Comments
 (0)