mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(ts3): update now works in docker
This commit is contained in:
parent
16c4493d1d
commit
22e812f75c
@ -18,7 +18,7 @@ fn_update_localbuild() {
|
||||
# Gets local build info.
|
||||
fn_print_dots "Checking local build: ${remotelocation}"
|
||||
# Uses log file to get local build.
|
||||
localbuild=$(grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" "$(find ./* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1)" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | tail -1)
|
||||
localbuild=$(grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" "$(find "${serverfiles}"/* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1)" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | tail -1)
|
||||
if [ -z "${localbuild}" ]; then
|
||||
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
|
||||
fn_script_log_error "Missing local build info"
|
||||
|
Loading…
Reference in New Issue
Block a user