Browse Source

fix(start): run update on start before applying game fixes (#5209)

`command_start.sh` ran `fix.sh` before the `updateonstart` block. Some game fixes export into the shell that runs the script (for Rust, `fix_rust.sh` exports `LD_LIBRARY_PATH` and sources the Carbon `environment.sh`), so the in-process update then ran SteamCMD with the game's environment still set and `steamcmd.sh` aborted.

`fix.sh` now runs after the update-on-start block. The separate `fix_ahl.sh` call after an update is removed, as `ahl` is covered by `fix.sh`.

Fixes #4753
Daniel Gibbs 1 hour ago
parent
commit
56f81a8ca4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      lgsm/modules/command_start.sh

+ 2 - 4
lgsm/modules/command_start.sh

@@ -266,7 +266,6 @@ if [ "${status}" != "0" ]; then
 	fi
 fi
 
-fix.sh
 info_game.sh
 core_logs.sh
 
@@ -280,11 +279,10 @@ if [ "${updateonstart}" == "yes" ] || [ "${updateonstart}" == "1" ] || [ "${upda
 		fn_print_warn_nl "Update failed, starting ${servername} anyway"
 		fn_script_log_warn "Update failed, starting ${servername} anyway"
 	fi
-	if [ "${shortname}" == "ahl" ]; then
-		fix_ahl.sh
-	fi
 fi
 
+fix.sh
+
 fn_print_dots "${servername}"
 if [ "${shortname}" == "jk2" ]; then
 	fn_start_jk2