mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
fix: suggestion format with 'mc admin config set'
This commit is contained in:
@@ -68,9 +68,9 @@ func (u configSetMessage) String() (msg string) {
|
|||||||
msg += console.Colorize("SetConfigSuccess",
|
msg += console.Colorize("SetConfigSuccess",
|
||||||
"Successfully applied new settings.")
|
"Successfully applied new settings.")
|
||||||
if u.restart {
|
if u.restart {
|
||||||
suggestion := fmt.Sprintf("\nmc admin service restart %s", u.targetAlias)
|
suggestion := color.RedString("mc admin service restart %s", u.targetAlias)
|
||||||
msg += console.Colorize("SetConfigSuccess",
|
msg += console.Colorize("SetConfigSuccess",
|
||||||
fmt.Sprintf("Please restart your server with `%s`.\n", suggestion))
|
fmt.Sprintf("\nPlease restart your server '%s'.", suggestion))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user