Add support for stable installation on Alpine Linux release 3.5

This commit is contained in:
Denys Havrysh 2017-02-10 11:09:53 +02:00
parent 073fc6191d
commit 155a2cb719
2 changed files with 7 additions and 6 deletions

View file

@ -275,6 +275,7 @@ for Ubuntu 16.04 from `SaltStack's Ubuntu repository`_ and install the 16.04 pac
Other Linux distro Other Linux distro
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
- Alpine Linux 3.5/edge
- Arch Linux - Arch Linux
- Gentoo - Gentoo

View file

@ -4194,13 +4194,13 @@ install_cloud_linux_check_services() {
# Alpine Linux Install Functions # Alpine Linux Install Functions
# #
install_alpine_linux_stable_deps() { install_alpine_linux_stable_deps() {
__COMUNITY_REPO_ENABLED="$(grep '^https://dl-cdn.alpinelinux.org/alpine/edge/community$' /etc/apk/repositories)" if ! grep -q '^[^#].\+alpine/.\+/community' /etc/apk/repositories; then
if [ "${__COMUNITY_REPO_ENABLED}" != "" ]; then # Add community repository entry based on the "main" repo URL
apk update __REPO=$(grep '^[^#].\+alpine/.\+/main\>' /etc/apk/repositories)
else echo "${__REPO}" | sed -e 's/main/community/' >> /etc/apk/repositories
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
apk update
fi fi
apk update
} }
install_alpine_linux_git_deps() { install_alpine_linux_git_deps() {