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