Add single-exchange instance-only deploy menu options.

Manage menu 4/5/6 install OKX/Binance/Gate Flask only without hub or agents; reuse setup_env --only and narrowed PM2 verify.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 15:40:25 +08:00
parent 2269bc51ff
commit 0f12e0a8ea
6 changed files with 300 additions and 44 deletions
+15 -3
View File
@@ -105,7 +105,10 @@ show_banner() {
}
show_menu() {
echo " 1) 一键部署"
echo " 1) 一键部署(全套:三所+中控)"
echo " 4) 仅 OKX 实例(不含中控)"
echo " 5) 仅 Binance 实例(不含中控)"
echo " 6) 仅 Gate 实例(不含中控)"
echo " 2) 一键卸载"
echo " 3) 更新"
echo " 0) 退出"
@@ -122,11 +125,20 @@ main_menu() {
show_banner
show_menu
local choice=""
cm_read choice "请选择 [0-3]: "
cm_read choice "请选择 [0-6]: "
case "${choice}" in
1)
bash "${LIB_DIR}/install.sh"
;;
4)
bash "${LIB_DIR}/install.sh" --exchange okx
;;
5)
bash "${LIB_DIR}/install.sh" --exchange binance
;;
6)
bash "${LIB_DIR}/install.sh" --exchange gate
;;
2)
bash "${LIB_DIR}/uninstall.sh"
;;
@@ -138,7 +150,7 @@ main_menu() {
exit 0
;;
*)
echo "无效选项,请输入 0-3"
echo "无效选项,请输入 0-6"
;;
esac
echo ""