fixed install script for current and future alpine versions
This commit is contained in:
parent
28d1f2c200
commit
937b3e88c5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue