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