diff --git a/features/cm/software.go b/features/cm/software.go index 8c3616e8..2df85efc 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -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, neTypeUpper, filePath) + runCmd := fmt.Sprintf("sudo %s/actpkg.sh '%s' %s", + config.GetYamlConfig().NE.ScpDir, filePath, neTypeUpper) 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 '%s'", - config.GetYamlConfig().NE.ScpDir, neTypeUpper, filePath) + runCmd := fmt.Sprintf("sudo %s/rbkpkg.sh '%s' %s", + config.GetYamlConfig().NE.ScpDir, filePath, neTypeUpper) if neTypeLower == "omc" { idNeVersion, _ := strconv.Atoi((*neVersion)[0]["id"]) neVersionData := dborm.NeVersion{