mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
make scrub inline and periodic
Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
ad519e2d3e
commit
9454c77be2
+1
-1
@@ -96,7 +96,7 @@ func newScrubCmd(conf *config.Config) *cobra.Command {
|
||||
response, err := http.DefaultClient.Do(req)
|
||||
if err == nil {
|
||||
response.Body.Close()
|
||||
log.Info().Msg("The server is running, in order to perform the scrub command the server should be shut down")
|
||||
log.Warn().Msg("The server is running, in order to perform the scrub command the server should be shut down")
|
||||
panic("Error: server is running")
|
||||
} else {
|
||||
// server is down
|
||||
|
||||
Reference in New Issue
Block a user