热更脚本修改
parent
0ac188ab20
commit
d176d01eeb
2
main.sh
2
main.sh
|
|
@ -130,10 +130,12 @@ gm_send_package() {
|
|||
|
||||
if is_valid_ip "$channel"; then
|
||||
unzip_package $channel $package $source_tar $destination_dir
|
||||
restart_server "admin" $channel
|
||||
else
|
||||
for ip in $(awk '{print $2}' "txt/$channel")
|
||||
do
|
||||
unzip_package $ip $package $source_tar $destination_dir
|
||||
restart_server "admin" $ip
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue