Mordhau-Manage install now properly generated the Game-Primary.ini
This commit is contained in:
parent
7ca6f8506a
commit
3c8c992efa
@ -232,7 +232,7 @@ should_kill() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
run_and_kill() {
|
run_and_stop() {
|
||||||
local prefix
|
local prefix
|
||||||
local server_id
|
local server_id
|
||||||
|
|
||||||
@ -405,7 +405,7 @@ configure() {
|
|||||||
|
|
||||||
[[ ! -f "${primary_server_config}" ]] &&
|
[[ ! -f "${primary_server_config}" ]] &&
|
||||||
log "error" "Unable to find a config for $(important "Server-${server_num}") (${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
|
if [[ "${verbose}" -eq 1 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
@ -684,7 +684,7 @@ update() {
|
|||||||
|
|
||||||
log "info" "Verifying and updating server"
|
log "info" "Verifying and updating server"
|
||||||
steamcmd +login anonymous +force_install_dir "${server_directory}" +app_update 629800 validate +quit
|
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}")"
|
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..."
|
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" &&
|
cat "${server_config}" > "${server_directory}/Mordhau/Saved/Config/LinuxServer/Game-Primary.ini" \
|
||||||
log "info" "Created the Game-Primary.ini file"
|
&& log "info" "Created the Game-Primary.ini file"
|
||||||
|
|
||||||
log "info" "Finished setting up Server-${server_id}"
|
log "info" "Finished setting up Server-${server_id}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user