diff --git a/features/cm/ne.go b/features/cm/ne.go index a06c2cc6..d0b954ae 100644 --- a/features/cm/ne.go +++ b/features/cm/ne.go @@ -427,7 +427,8 @@ func ExportCmFromNF(w http.ResponseWriter, r *http.Request) { } zipFile := fmt.Sprintf("%s-%s-etc-%s.zip", neTypeLower, strings.ToLower(neInfo.NeId), time.Now().Format(global.DateData)) - zipCmd := fmt.Sprintf("cd %s && zip -r %s etc/%s/*", config.GetYamlConfig().OMC.Backup, zipFile, neTypeLower) + zipFilePath := config.GetYamlConfig().OMC.Backup + "/" + zipFile + zipCmd := fmt.Sprintf("cd %s/etc && zip -r %s %s/*", config.GetYamlConfig().OMC.Backup, zipFilePath, neTypeLower) command := fmt.Sprintf("%s&&%s", scpCmd, zipCmd) @@ -439,7 +440,6 @@ func ExportCmFromNF(w http.ResponseWriter, r *http.Request) { return } - zipFilePath := fmt.Sprintf("%s/%s", config.GetYamlConfig().OMC.Backup, zipFile) md5Sum, err := global.GetFileMD5Sum(zipFilePath) if err != nil { log.Error("Faile to md5sum:", err)