mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Dont start console service if MINIO_BROWSER=off (#20374)
By default, even if MINIO_BROWSER=off set code tries to get free port available for the console. Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
@@ -81,8 +81,10 @@ func handleSignals() {
|
||||
shutdownLogIf(context.Background(), objAPI.Shutdown(context.Background()))
|
||||
}
|
||||
|
||||
if srv := newConsoleServerFn(); srv != nil {
|
||||
shutdownLogIf(context.Background(), srv.Shutdown())
|
||||
if globalBrowserEnabled {
|
||||
if srv := newConsoleServerFn(); srv != nil {
|
||||
shutdownLogIf(context.Background(), srv.Shutdown())
|
||||
}
|
||||
}
|
||||
|
||||
if globalEventNotifier != nil {
|
||||
|
||||
Reference in New Issue
Block a user