fixed install script for current and future alpine versions

This commit is contained in:
Daniel Sommer 2021-10-15 15:56:21 +02:00
parent 28d1f2c200
commit 937b3e88c5

View file

@ -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