Browse Source

fix(ts3server): ts3 version detection when server was started with 'logappend=1' #2584 (#2585)

pull/2587/head
Tamim Baschour 5 years ago
committed by Daniel Gibbs
parent
commit
ccab1fa2a5
  1. 4
      lgsm/functions/update_ts3.sh

4
lgsm/functions/update_ts3.sh

@ -68,7 +68,7 @@ fn_update_ts3_localbuild(){
fi
if [ -z "${localbuild}" ]; then
localbuild=$(cat $(find ./* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1) | grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}")
localbuild=$(cat $(find ./* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1) | grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | tail -1)
fi
if [ -z "${localbuild}" ]; then
@ -81,7 +81,7 @@ fn_update_ts3_localbuild(){
loopignore=1
fn_script_log_info "Waiting for local build to generate"
fi
localbuild=$(cat $(find ./* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1) | grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}")
localbuild=$(cat $(find ./* -name "ts3server*_0.log" 2> /dev/null | sort | tail -1) | grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | tail -1)
if [ "${localbuild}" ]; then
break
fi

Loading…
Cancel
Save