Mordhau-Manage install now properly generated the Game-Primary.ini

This commit is contained in:
Price Hiller 2021-08-27 07:15:17 -05:00
parent 7ca6f8506a
commit 3c8c992efa

View File

@ -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}"