main
parent
960be4f7c0
commit
3c9869649d
6
main.sh
6
main.sh
|
|
@ -111,7 +111,7 @@ game_send_package() {
|
|||
restart_server "core" "$channel"
|
||||
fi
|
||||
else
|
||||
awk '{print $2}' "txt/$channel" | while read -r ip; do
|
||||
awk '{print $2}' "txt/$channel" | tr -d '\r' | while read -r ip; do
|
||||
unzip_package $ip $package $source_tar $destination_dir
|
||||
if [[ $reboot -eq 1 ]]; then
|
||||
restart_server "core" "$ip"
|
||||
|
|
@ -130,7 +130,7 @@ gm_send_package() {
|
|||
if is_valid_ip "$channel"; then
|
||||
unzip_package $channel $package $source_tar $destination_dir
|
||||
else
|
||||
awk '{print $2}' "txt/$channel" | while read -r ip; do
|
||||
awk '{print $2}' "txt/$channel" | tr -d '\r' | while read -r ip; do
|
||||
unzip_package $ip $package $source_tar $destination_dir
|
||||
done
|
||||
fi
|
||||
|
|
@ -269,7 +269,7 @@ gm_option() {
|
|||
restart_server "admin" "$ip"
|
||||
elif [ "$action" = "batch_reboot" ]; then
|
||||
local path="/data/update/script/txt/gm_ip.txt"
|
||||
awk '{print $2}' "${path}" | while read -r ip; do
|
||||
awk '{print $2}' "${path}" | tr -d '\r' | while read -r ip; do
|
||||
echo -e "开始更新gm $ip"
|
||||
restart_server "admin" "$ip"
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue