diff --git a/cmd/root.go b/cmd/root.go index 14afe6a..81f0adc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -96,9 +96,9 @@ func rootCmdRun(*cobra.Command, []string) { os.Exit(1) } - if err := c.WriteToDisk(); err != nil { + /*if err := c.WriteToDisk(); err != nil { zap.S().Errorw("failed to save configuration to disk", zap.Error(errors.WithStack(err))) - } + }*/ // Just for some nice log output. for _, s := range server.GetServers().All() { diff --git a/config/config.go b/config/config.go index 3b5f47c..910f06a 100644 --- a/config/config.go +++ b/config/config.go @@ -291,7 +291,8 @@ func (c *Configuration) setSystemUser(u *user.User) error { c.System.User.Uid = uid c.System.User.Gid = gid - return c.WriteToDisk() + // return c.WriteToDisk() + return nil } // Ensures that the configured data directory has the correct permissions assigned to