d
This commit is contained in:
@@ -564,7 +564,7 @@ func DistributeSoftwareToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName
|
neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName
|
||||||
cpCmd := fmt.Sprintf("sudo cp -f %s %s/software/%s", neFilePath,
|
cpCmd := fmt.Sprintf("sudo mv -f %s %s/software/%s", neFilePath,
|
||||||
config.GetYamlConfig().NE.OmcDir, neTypeLower)
|
config.GetYamlConfig().NE.OmcDir, neTypeLower)
|
||||||
cmd = exec.Command("ssh", sshHost, cpCmd)
|
cmd = exec.Command("ssh", sshHost, cpCmd)
|
||||||
out, err = cmd.CombinedOutput()
|
out, err = cmd.CombinedOutput()
|
||||||
|
|||||||
Reference in New Issue
Block a user