fix 开启 beta 计划快速安装命令不是 beta 版本

This commit is contained in:
bwcx_jzy 2023-03-24 21:40:26 +08:00
parent 3ced2e2f8b
commit 035d0880a6
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
4 changed files with 21 additions and 1 deletions

View File

@ -5,6 +5,7 @@
### 🐞 解决BUG、优化功能
1. 【server】优化 在线构建仓库支持全局共享(避免同一个仓库频繁创建)(感谢@酱总)
2. 【server】修复 开启 beta 计划快速安装命令不是 beta 版本(感谢@酱总)
------

View File

@ -188,7 +188,8 @@ public class NodeUpdateController extends BaseServerController {
@GetMapping(value = "fast_install.json", produces = MediaType.APPLICATION_JSON_VALUE)
public JsonMessage<JSONObject> fastInstall() {
InputStream inputStream = ExtConfigBean.getConfigResourceInputStream("/fast-install-info.json");
boolean beta = RemoteVersion.betaRelease();
InputStream inputStream = ExtConfigBean.getConfigResourceInputStream(beta ? "/fast-install-beta.json" : "/fast-install-release.json");
String json = IoUtil.read(inputStream, CharsetUtil.CHARSET_UTF_8);
JSONObject jsonObject = new JSONObject();
JpomManifest instance = JpomManifest.getInstance();

View File

@ -0,0 +1,18 @@
[
{
"name": "主地址(默认安装)",
"url": "curl -fsSL https://jpom.top/docs/install.sh | bash -s Agent jdk+default+beta"
},
{
"name": "备用地址(默认安装)",
"url": "curl -fsSL https://gitee.com/dromara/Jpom/raw/docs/docs/.vuepress/public/docs/install.sh | bash -s Agent jdk+default+beta"
},
{
"name": "主地址(自定义安装)",
"url": "yum install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Agent jdk+beta"
},
{
"name": "备用地址(自定义安装)",
"url": "yum install -y wget && wget -O install.sh https://gitee.com/dromara/Jpom/raw/docs/docs/.vuepress/public/docs/install.sh && bash install.sh Agent jdk+beta"
}
]