This commit is contained in:
2023-10-11 14:17:52 +08:00
parent 786d749e7c
commit b681bcdc09

View File

@@ -564,7 +564,7 @@ func DistributeSoftwareToNF(w http.ResponseWriter, r *http.Request) {
return
}
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)
cmd = exec.Command("ssh", sshHost, cpCmd)
out, err = cmd.CombinedOutput()