From 9fc5c833b72d84d44767f233b1b687147971e0a9 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 7 Jun 2025 17:26:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BC=98=E5=8C=96Al?= =?UTF-8?q?pine=E7=B3=BB=E7=BB=9F=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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