Disable config saving temporarily

This commit is contained in:
Matthew Penner 2020-04-10 17:19:35 -06:00
parent acf425b705
commit 12648b43fa
2 changed files with 4 additions and 3 deletions

View File

@ -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() {

View File

@ -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