Alpine linux support

Added detection of alpine linux and required packages
This commit is contained in:
Da-FyK
2018-08-13 12:17:16 +02:00
committed by GitHub
parent d237c95465
commit bdc30fd750

View File

@@ -82,6 +82,8 @@ install_linux () {
Distro='RedHat'
elif [ -f /etc/debian_version ] ; then
Distro='Debian'
elif [ -f /etc/alpine-release ] ; then
Distro='Alpine'
elif [ -f /etc/os-release ] ; then
#DISTRO_ID=$(grep ^ID= /etc/os-release | cut -d= -f2-)
DISTRO_ID=$(cat /etc/os-release | grep ID= | cut -d= -f2-)
@@ -107,6 +109,9 @@ install_linux () {
elif [ "${Distro}" = "Arch" ]; then
sudo pacman -Syu # Updates repo, dependencies, etc.
sudo pacman -S curl git make openssl gcc readline zlib libyaml sqlite bzip2 autoconf automake libtool bison nodejs ruby ruby-rdoc # Installs dependencies
elif [ "${Distro}" = "Alpine" ]; then
apk update # Updates repo, dependencies, etc.
apk add curl git build-base openssl readline-dev zlib zlib-dev libressl-dev yaml-dev sqlite-dev sqlite libxml2-dev libxslt-dev autoconf libc6-compat ncurses5 automake libtool bison nodejs # Installs dependencies
fi
}