From d9d88de16fd553fe7101f38fe6681ac494906487 Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Sat, 11 Mar 2023 16:18:01 +0100 Subject: [PATCH] apk upgrade -a after changing Repos this small change was teached to me on gitlab alpine devs. We need the -a after changing a repo. Also I "downgraded" to latest-stable because the edge/testing repo is only needed to get the 1.27-r2 working with webvault 2022.12 --- install/alpine-vaultwarden-v5-install.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/install/alpine-vaultwarden-v5-install.sh b/install/alpine-vaultwarden-v5-install.sh index 854ee4aa..34c5404b 100644 --- a/install/alpine-vaultwarden-v5-install.sh +++ b/install/alpine-vaultwarden-v5-install.sh @@ -67,8 +67,8 @@ if [ "$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | c exit 1 fi cat </etc/apk/repositories -https://dl-cdn.alpinelinux.org/alpine/edge/main -https://dl-cdn.alpinelinux.org/alpine/edge/community +https://dl-cdn.alpinelinux.org/alpine/latest-stable/main +https://dl-cdn.alpinelinux.org/alpine/latest-stable/community https://dl-cdn.alpinelinux.org/alpine/edge/testing EOF msg_ok "Set up Container OS" @@ -94,7 +94,7 @@ trap 'error_handler $LINENO "$BASH_COMMAND"' ERR msg_info "Updating Container OS" $STD apk update -$STD apk upgrade +$STD apk upgrade -a msg_ok "Updated Container OS" msg_info "Installing Dependencies" @@ -106,12 +106,6 @@ $STD apk add nano $STD apk add mc msg_ok "Installed Dependencies" -msg_info "Adjusting Repositories" -echo -e "https://dl-cdn.alpinelinux.org/alpine/latest-stable/main" > /etc/apk/repositories -echo -e "https://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories -echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories -msg_ok "Adjusted Repositories" - msg_info "Installing Vaultwarden" $STD apk add --no-cache vaultwarden cat </etc/conf.d/vaultwarden