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`
This commit is contained in:
nicedevil007 2023-03-11 11:18:44 +01:00 committed by GitHub
parent 41109f0a8d
commit a733af434b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -101,8 +101,14 @@ $STD apk add nano
$STD apk add mc $STD apk add mc
msg_ok "Installed Dependencies" 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" 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 <<EOF >/etc/conf.d/vaultwarden cat <<EOF >/etc/conf.d/vaultwarden
export DATA_FOLDER=/var/lib/vaultwarden export DATA_FOLDER=/var/lib/vaultwarden
export WEB_VAULT_ENABLED=true export WEB_VAULT_ENABLED=true