diff --git a/install.sh b/install.sh index a94f65e..36f7609 100644 --- a/install.sh +++ b/install.sh @@ -58,6 +58,12 @@ checkSystem() { removeType='yum -y remove' upgrade="yum update -y --skip-broken" checkCentosSELinux + elif { [[ -f "/etc/issue" ]] && grep -qi "Alpine" /etc/issue; } || { [[ -f "/proc/version" ]] && grep -qi "Alpine" /proc/version; }; then + release="alpine" + installType='apk add' + upgrade="apk update" + removeType='apk del' + nginxConfigPath=/etc/nginx/http.d/ elif { [[ -f "/etc/issue" ]] && grep -qi "debian" /etc/issue; } || { [[ -f "/proc/version" ]] && grep -qi "debian" /proc/version; } || { [[ -f "/etc/os-release" ]] && grep -qi "ID=debian" /etc/issue; }; then release="debian" installType='apt -y install' @@ -74,12 +80,6 @@ checkSystem() { if grep