From 12648b43faaed9fe6c087ca2bab3223013c11805 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Fri, 10 Apr 2020 17:19:35 -0600 Subject: [PATCH] Disable config saving temporarily --- cmd/root.go | 4 ++-- config/config.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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