update alpine linux to v3.13
This commit is contained in:
parent
b75e0234ab
commit
e4b22a4b93
|
@ -7,6 +7,7 @@
|
||||||
swappiness="25"
|
swappiness="25"
|
||||||
tmpfs_size="1G"
|
tmpfs_size="1G"
|
||||||
repository_protocol="https"
|
repository_protocol="https"
|
||||||
|
repository_version="v3.13"
|
||||||
|
|
||||||
# execution
|
# execution
|
||||||
printf "|>> executing alpine install script...\n"
|
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
|
[[ "$password_confirmation" != "$password" ]] && printf "|> error: passwords do not match\n" && exit 1
|
||||||
fi
|
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"
|
printf "|> removing motd...\n"
|
||||||
rm -f "/etc/motd"
|
rm -f "/etc/motd"
|
||||||
|
|
Loading…
Reference in a new issue