Browse Source

fix #1452

tags/v2.5.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
dd4fd1cbb6
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      irc/server.go

+ 2
- 0
irc/server.go View File

@@ -529,6 +529,8 @@ func (server *Server) applyConfig(config *Config) (err error) {
529 529
 			return fmt.Errorf("Cannot change max-concurrency for scripts after launching the server, rehash aborted")
530 530
 		} else if oldConfig.Server.OverrideServicesHostname != config.Server.OverrideServicesHostname {
531 531
 			return fmt.Errorf("Cannot change override-services-hostname after launching the server, rehash aborted")
532
+		} else if !oldConfig.Datastore.MySQL.Enabled && config.Datastore.MySQL.Enabled {
533
+			return fmt.Errorf("Cannot enable MySQL after launching the server, rehash aborted")
532 534
 		}
533 535
 	}
534 536
 

Loading…
Cancel
Save