Browse Source
fix(steamcmd): ensure core HL1 files are present after appid 90 update
* Added checks to verify the presence of core HL1 files after updating appid 90.
* If files are missing, an update is forced and errors are logged.
* Exits the script if files are still missing after the retry.
pull/4912/head
Daniel Gibbs
1 month ago
Failed to extract signature
1 changed files with
17 additions and
0 deletions
lgsm/modules/core_steamcmd.sh
@ -427,4 +427,21 @@ fn_check_steamcmd_appmanifest() {
fn_dl_steamcmd
fi
fi
# appid 90 can occasionally report success while core HL1 files are incomplete.
if [ " ${ appid } " = = "90" ] ; then
if [ ! -f " ${ serverfiles } /hlds_run " ] || [ ! -f " ${ serverfiles } /engine_i486.so " ] || [ ! -d " ${ serverfiles } /valve " ] ; then
fn_print_error_nl "Core HL1 files missing after appid 90 update"
fn_script_log_error "Core HL1 files missing after appid 90 update"
fn_print_info_nl "Forcing update to correct issue"
fn_script_log_info "Forcing update to correct issue"
fn_dl_steamcmd
if [ ! -f " ${ serverfiles } /hlds_run " ] || [ ! -f " ${ serverfiles } /engine_i486.so " ] || [ ! -d " ${ serverfiles } /valve " ] ; then
fn_print_fail_nl "Core HL1 files are still missing after retry"
fn_script_log_fail "Core HL1 files are still missing after retry"
core_exit.sh
fi
fi
fi
}