Browse Source

fix(ts3): update now works in docker

pull/4310/head
Daniel Gibbs 2 years ago
parent
commit
22e812f75c
  1. 2
      lgsm/modules/update_ts3.sh

2
lgsm/modules/update_ts3.sh

@ -18,7 +18,7 @@ fn_update_localbuild() {
# Gets local build info. # Gets local build info.
fn_print_dots "Checking local build: ${remotelocation}" fn_print_dots "Checking local build: ${remotelocation}"
# Uses log file to get local build. # 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 if [ -z "${localbuild}" ]; then
fn_print_error "Checking local build: ${remotelocation}: missing local build info" fn_print_error "Checking local build: ${remotelocation}: missing local build info"
fn_script_log_error "Missing local build info" fn_script_log_error "Missing local build info"

Loading…
Cancel
Save