From e4b22a4b93b30adccde48eb005d9f51ed8b4917e Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 9 Apr 2021 23:25:19 +0200 Subject: [PATCH] update alpine linux to v3.13 --- alpine_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alpine_install.sh b/alpine_install.sh index c14676c..576ed98 100755 --- a/alpine_install.sh +++ b/alpine_install.sh @@ -7,6 +7,7 @@ swappiness="25" tmpfs_size="1G" repository_protocol="https" +repository_version="v3.13" # execution printf "|>> executing alpine install script...\n" @@ -25,7 +26,8 @@ if [[ ! "$password" ]]; then [[ "$password_confirmation" != "$password" ]] && printf "|> error: passwords do not match\n" && exit 1 fi -[[ "$repository_protocol" ]] && printf "|> setting protocol for all repositories to '$repository_protocol'\n" && sed -i "s/http/$repository_protocol/g" "/etc/apk/repositories" +[[ "$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" printf "|> removing motd...\n" rm -f "/etc/motd"