Skip to content

Commit

Permalink
Fix first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
patrix87 committed Dec 31, 2024
1 parent 26d703b commit c291edb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/enshrouded.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ Add-Member -InputObject $Server -Name "WorkingDirectory" -Type NoteProperty -Val
#---------------------------------------------------------

function Start-ServerPrep {
# Check if the configuration file exists.
# If not, skip the modification of the configuration file.
if (-not (Test-Path "$($Server.ConfigFolder)/enshrouded_server.json")) {
Write-ScriptMsg "Configuration file not found. Skipping configuration modification."
return
}
# Import enshrouded_server.json
$json = Get-Content "$($Server.ConfigFolder)/enshrouded_server.json" | ConvertFrom-Json
# Update the server configuration json file with the current server configuration.
Expand Down

0 comments on commit c291edb

Please sign in to comment.