mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
fix 开启 beta 计划快速安装命令不是 beta 版本
This commit is contained in:
parent
3ced2e2f8b
commit
035d0880a6
@ -5,6 +5,7 @@
|
||||
### 🐞 解决BUG、优化功能
|
||||
|
||||
1. 【server】优化 在线构建仓库支持全局共享(避免同一个仓库频繁创建)(感谢@酱总)
|
||||
2. 【server】修复 开启 beta 计划快速安装命令不是 beta 版本(感谢@酱总)
|
||||
|
||||
------
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user