fix: 修复升级脚本对安装包文件后缀的处理

This commit is contained in:
xuwei-fit2cloud 2024-03-07 10:24:50 +08:00
parent a9bff32a83
commit 102c975f1e
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ function upgrade() {
echo "使用下载服务器 ${server_url}"
cd /tmp
installer_file="dataease-online-installer-${latest_version}.tar.gz"
installer_file="dataease-online-installer-${latest_version}-ce.tar.gz"
download_url="https://${server_url}/dataease/dataease/releases/download/${latest_version}/$installer_file"
curl -LOk -m 60 -o $installer_file $download_url
if [ $? -ne 0 ]; then

View File

@ -65,7 +65,7 @@ latest_version=$(cat /tmp/de_latest_release)
echo "开始下载 DataEase ${latest_version} 版本在线安装包"
installer_file="dataease-online-installer-${latest_version}.tar.gz"
installer_file="dataease-online-installer-${latest_version}-ce.tar.gz"
download_url="https://${server_url}/dataease/dataease/releases/download/${latest_version}/$installer_file"
echo "下载地址: ${download_url}"
curl -LOk -m 60 -o $installer_file $download_url