From 7dca680a5fabfad72e5fe6139ddb260f20545672 Mon Sep 17 00:00:00 2001 From: Jens van de Wiel Date: Fri, 10 Nov 2023 15:06:59 +0100 Subject: [PATCH] Update server_controller_werr.go --- server/server_controller_werr.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/server_controller_werr.go b/server/server_controller_werr.go index f31f652..81c8960 100644 --- a/server/server_controller_werr.go +++ b/server/server_controller_werr.go @@ -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())