时空更新脚本优化

main
grimm 2024-07-18 16:09:27 +08:00
parent 96b6273b67
commit 655f15cdaa
1 changed files with 4 additions and 4 deletions

View File

@ -80,12 +80,12 @@ server_build_update(){
show_file script/txt show_file script/txt
read -rp "请输入ip或文件名不带后缀: " channel read -rp "请输入ip或文件名不带后缀: " channel
# 是否重启 # 是否重启
read -r -p "更新完毕,是否需要重启Y/N: " reboot read -r -p "是否需要重启Y/N: " reboot
# 源服务器上的tar压缩包路径 # 源服务器上的tar压缩包路径
local source_tar="/data/update/package/" local source_tar="/data/update/package"
local destination_dir="/data/shikong/$code" local destination_dir="/data/shikong/$code"
echo -e "开始发送游戏包,文件$source_tar/$package, 机器:$channel, 重启:$reboot" echo -e "开始发送游戏包,文件名称$package, 机器:$channel, 重启:$reboot"
case $code in case $code in
"server") "server")
if if_ip "$channel"; then if if_ip "$channel"; then
@ -230,7 +230,7 @@ normal_code_update() {
;; ;;
esac esac
read -r -p "更新完毕,是否需要重启Y/N: " input read -r -p "是否需要重启Y/N: " input
case $input in case $input in
[yY][eE][sS]|[yY]) [yY][eE][sS]|[yY])
case $server_name in case $server_name in