From 3736d9ed936c78ba27f1a21092dc1577b901f76c Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Thu, 7 Dec 2023 10:17:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.sh b/main.sh index c9fb1e5..d74f82d 100644 --- a/main.sh +++ b/main.sh @@ -94,9 +94,11 @@ restart_server() { restart_script="supervisorctl restart all" ;; "coreStop") + server_name=core1 restart_script="bash /data/jieling/server/bin/stop.sh core1" ;; "coreStart") + server_name=core1 restart_script="bash /data/jieling/server/bin/start.sh core1" ;; *) @@ -236,7 +238,9 @@ game_code_build(){ local current_time=$(get_current_time) show_file project | grep master read -rp "请输入项目地址: " project - bash "${script}" "${project}" "${project}_${type}_${current_time}" + local package="${project}_${type}_${current_time}" + echo -e "包名: $package" + bash "${script}" "${project}" "${package}" } # 游戏代码正式更新 game_code_official(){