From 9fc5c833b72d84d44767f233b1b687147971e0a9 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 7 Jun 2025 17:26:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96Alpine=E7=B3=BB=E7=BB=9F=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=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 Date: Sat, 7 Jun 2025 17:26:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0openssl=E5=AE=89=E8=A3=85=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 36f7609..d22669b 100644 --- a/install.sh +++ b/install.sh @@ -1108,6 +1108,11 @@ installTools() { ${installType} binutils >/dev/null 2>&1 fi + if ! find /usr/bin /usr/sbin | grep -q -w openssl; then + echoContent green " ---> 安装openssl" + ${installType} openssl >/dev/null 2>&1 + fi + if ! find /usr/bin /usr/sbin | grep -q -w ping6; then echoContent green " ---> 安装ping6" ${installType} inetutils-ping >/dev/null 2>&1