update alpine linux to v3.13

This commit is contained in:
Daniel Sommer 2021-04-09 23:25:19 +02:00
parent b75e0234ab
commit e4b22a4b93

View file

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