This commit is contained in:
simonzhangsz committed 2024-01-17 20:38:25 +08:00
1 parent 92a46667b1
commit 827ada36c9
2 files changed
+11 -4

No files matched your search

+4 -4
View File
@@ -698,8 +698,8 @@ func ActiveSoftwareToNF(w http.ResponseWriter, r *http.Request) {
return
}
runCmd := fmt.Sprintf("sudo %s/actpkg.sh '%s' %s",
config.GetYamlConfig().NE.ScpDir, filePath, neTypeUpper)
runCmd := fmt.Sprintf("sudo %s/actpkg.sh %s '%s'",
config.GetYamlConfig().NE.ScpDir, neTypeUpper, filePath)
if neTypeLower == "omc" {
idNeVersion, _ := strconv.Atoi((*neVersion)[0]["id"])
neVersionData := dborm.NeVersion{
@@ -898,8 +898,8 @@ func RollBackSoftwareToNF(w http.ResponseWriter, r *http.Request) {
return
}
runCmd := fmt.Sprintf("sudo %s/rbkpkg.sh '%s'",
config.GetYamlConfig().NE.ScpDir, filePath)
runCmd := fmt.Sprintf("sudo %s/rbkpkg.sh %s '%s'",
config.GetYamlConfig().NE.ScpDir, neTypeUpper, filePath)
if neTypeLower == "omc" {
idNeVersion, _ := strconv.Atoi((*neVersion)[0]["id"])
neVersionData := dborm.NeVersion{