Cosmetic
This commit is contained in:
parent
0c7293ae66
commit
128e2aa0c4
@ -219,12 +219,12 @@ func StopJail(args []string) {
|
||||
}
|
||||
|
||||
if len(cj.Config.Exec_prestop) > 0 {
|
||||
fmt.Printf(" > Execute prestop:\n")
|
||||
fmt.Printf(" > Execute pre-stop:\n")
|
||||
_, err := executeCommand(cj.Config.Exec_prestop)
|
||||
if err != nil {
|
||||
fmt.Printf("ERROR: %s\n", err.Error())
|
||||
} else {
|
||||
fmt.Printf(" > Execute prestop: OK\n")
|
||||
fmt.Printf(" > Execute pre-stop: OK\n")
|
||||
}
|
||||
}
|
||||
|
||||
@ -345,12 +345,12 @@ func StopJail(args []string) {
|
||||
|
||||
// TODO: Execute poststop
|
||||
if len(cj.Config.Exec_poststop) > 0 {
|
||||
fmt.Printf(" > Execute poststop:\n")
|
||||
fmt.Printf(" > Execute post-stop:\n")
|
||||
_, err := executeCommand(cj.Config.Exec_poststop)
|
||||
if err != nil {
|
||||
fmt.Printf("ERROR: %s\n", err.Error())
|
||||
} else {
|
||||
fmt.Printf(" > Execute poststop: OK\n")
|
||||
fmt.Printf(" > Execute post-stop: OK\n")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user