From d212f68855b5ba7e9d4b4314267bf62c052a5695 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Sat, 17 Aug 2024 17:31:29 +0800 Subject: [PATCH] =?UTF-8?q?:package:=20=E8=B0=83=E6=95=B4=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/easynode-client-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/easynode-client-install.sh b/client/easynode-client-install.sh index f4d176fe..c24176c7 100644 --- a/client/easynode-client-install.sh +++ b/client/easynode-client-install.sh @@ -43,15 +43,14 @@ echo "***********************创建文件PATH***********************" mkdir -p ${FILE_PATH} echo "***********************下载开始***********************" -DOWNLOAD_SERVICE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION}/easynode-client.service" ARCH=$(uname -m) echo "***********************系统架构: $ARCH***********************" if [ "$ARCH" = "x86_64" ] ; then - DOWNLOAD_FILE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION }/easynode-client-x64" + DOWNLOAD_FILE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION}/easynode-client-x64" elif [ "$ARCH" = "aarch64" ] ; then - DOWNLOAD_FILE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION }/easynode-client-arm64" + DOWNLOAD_FILE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION}/easynode-client-arm64" else echo "不支持的架构:$ARCH. 只支持x86_64和aarch64,其他架构请自行构建" exit 1 @@ -65,6 +64,8 @@ then exit 1 fi +DOWNLOAD_SERVICE_URL="${SERVER_PROXY}https://github.com/chaos-zhu/easynode/releases/download/${CLIENT_VERSION}/easynode-client.service" + wget -O ${FILE_PATH}/${SERVER_NAME}.service --no-check-certificate --no-cache ${DOWNLOAD_SERVICE_URL} if [ $? != 0 ]