feat: 许可证和网元开关机

This commit is contained in:
TsMask committed 2023-10-12 09:49:34 +08:00
1 parent 3220f9d138
commit 55fe1d534d
5 files changed
+211 -24

No files matched your search

+1 -1
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()