From bdc30fd75084ba01aa9b4fde9a1eb6dee018aeb2 Mon Sep 17 00:00:00 2001 From: Da-FyK Date: Mon, 13 Aug 2018 12:17:16 +0200 Subject: [PATCH] Alpine linux support Added detection of alpine linux and required packages --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index 3af4f4c94..4749b7634 100755 --- a/install +++ b/install @@ -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 }