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
~~~~~~~~~~~~~~~~~~
- Alpine Linux 3.5/edge
- Arch Linux
- Gentoo

View file

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