时空更新脚本优化
parent
96b6273b67
commit
655f15cdaa
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue