Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Update server_controller_werr.go
Browse files Browse the repository at this point in the history
  • Loading branch information
JensvandeWiel committed Nov 10, 2023
1 parent c340337 commit 7dca680
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/server_controller_werr.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func (c *ServerController) SaveServerWithError(server *Server) error {
}
}

err = CopyAndMakeOld(path.Join(serverDir, configFileName))
if err != nil {
return err
}

err = os.WriteFile(path.Join(serverDir, configFileName), serverFile, 0644)
if err != nil {
return fmt.Errorf("Error writing config file: " + err.Error())
Expand Down

0 comments on commit 7dca680

Please sign in to comment.