From a733af434bbf1aad05f7633248d6633e1c9fadf1 Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Sat, 11 Mar 2023 11:18:44 +0100 Subject: [PATCH] Updates to APK Repositories Created a new `/etc/apk/repositories` that doesn't use a fixed version number for alpine linux. We are able to update the LXC's OS with this instead of just the packages. I also added the testing repo to the file to be able to update vaultwarden in the future with a simple `apk update && apk upgrade` --- install/alpine-vaultwarden-v5-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install/alpine-vaultwarden-v5-install.sh b/install/alpine-vaultwarden-v5-install.sh index 92e668b4..d376bb45 100644 --- a/install/alpine-vaultwarden-v5-install.sh +++ b/install/alpine-vaultwarden-v5-install.sh @@ -101,8 +101,14 @@ $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 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing vaultwarden +$STD apk add --no-cache vaultwarden cat </etc/conf.d/vaultwarden export DATA_FOLDER=/var/lib/vaultwarden export WEB_VAULT_ENABLED=true