Skip to content

Commit

Permalink
📦 调整客户端安装脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
chaos-zhu committed Aug 17, 2024
1 parent 8e90647 commit d212f68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/easynode-client-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ]
Expand Down

0 comments on commit d212f68

Please sign in to comment.