From 3c8c992efa74026ba75c4634e392669a5c7dd043 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 27 Aug 2021 07:15:17 -0500 Subject: [PATCH] Mordhau-Manage install now properly generated the Game-Primary.ini --- CentOS/Mordhau/Mordhau-Manage.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CentOS/Mordhau/Mordhau-Manage.bash b/CentOS/Mordhau/Mordhau-Manage.bash index e84293f..c86f4a9 100755 --- a/CentOS/Mordhau/Mordhau-Manage.bash +++ b/CentOS/Mordhau/Mordhau-Manage.bash @@ -232,7 +232,7 @@ should_kill() { return 0 } -run_and_kill() { +run_and_stop() { local prefix local server_id @@ -405,7 +405,7 @@ configure() { [[ ! -f "${primary_server_config}" ]] && log "error" "Unable to find a config for $(important "Server-${server_num}") (${primary_server_config})" && - continue + continue if [[ "${verbose}" -eq 1 ]]; then echo "" @@ -684,7 +684,7 @@ update() { log "info" "Verifying and updating server" steamcmd +login anonymous +force_install_dir "${server_directory}" +app_update 629800 validate +quit - run_and_kill "${server_id}" + run_and_stop "${server_id}" log "info" "Successfully verified and updated $(important "Server-${server_id}")" } @@ -746,10 +746,10 @@ install() { log "info" "Starting server to install default configuration files, please wait..." - run_and_kill "${server_id}" + run_and_stop "${server_id}" - cp "${server_config}" "Game-Primary.ini" && - log "info" "Created the Game-Primary.ini file" + cat "${server_config}" > "${server_directory}/Mordhau/Saved/Config/LinuxServer/Game-Primary.ini" \ + && log "info" "Created the Game-Primary.ini file" log "info" "Finished setting up Server-${server_id}"