From 937b3e88c5fe59057e5b2e99250af0d484ed7d63 Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 15 Oct 2021 15:56:21 +0200 Subject: [PATCH] fixed install script for current and future alpine versions --- alpine_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alpine_install.sh b/alpine_install.sh index 847cd75..cb22dcf 100755 --- a/alpine_install.sh +++ b/alpine_install.sh @@ -7,7 +7,7 @@ swappiness="25" tmpfs_size="1G" repository_protocol="https" -repository_version="v3.13" +repository_version="v3.14" # execution printf "|>> executing alpine install script...\n" @@ -27,7 +27,7 @@ if [[ ! "$password" ]]; then fi [[ "$repository_protocol" ]] && printf "|> setting protocol for all repositories to '"$repository_protocol"'\n" && sed -i "s/http/$repository_protocol/g" "/etc/apk/repositories" -[[ "$repository_version" ]] && printf "|> setting version for all repositories to '"$repository_version"'\n" && sed -i "s/v3.12/$repository_version/g" "/etc/apk/repositories" +[[ "$repository_version" ]] && printf "|> setting version for all repositories to '"$repository_version"'\n" && sed -i "s/\/v.*\//\/$repository_version\//g" "/etc/apk/repositories" printf "|> updating packages...\n" apk update --progress