d
This commit is contained in:
@@ -725,7 +725,7 @@ func ActiveSoftwareToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "ims":
|
case "ims":
|
||||||
restartCmd := "sudo ims-restart"
|
restartCmd := "sudo ims-stop && sudo ims-start"
|
||||||
cmd := exec.Command("ssh", sshHost, restartCmd)
|
cmd := exec.Command("ssh", sshHost, restartCmd)
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
log.Debugf("Exec output: %v", string(out))
|
log.Debugf("Exec output: %v", string(out))
|
||||||
@@ -866,7 +866,7 @@ func RollBackSoftwareToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "ims":
|
case "ims":
|
||||||
restartCmd := "sudo ims-restart"
|
restartCmd := "sudo ims-stop && sudo ims-start"
|
||||||
cmd := exec.Command("ssh", sshHost, restartCmd)
|
cmd := exec.Command("ssh", sshHost, restartCmd)
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
log.Debugf("Exec output: %v", string(out))
|
log.Debugf("Exec output: %v", string(out))
|
||||||
|
|||||||
Reference in New Issue
Block a user