mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-15 17:20:20 +00:00
Add support for stable installation on Alpine Linux release 3.5
This commit is contained in:
parent
073fc6191d
commit
155a2cb719
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue