From 446764194d0a2574e6d7f53245d16e21af02a69d Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sat, 16 Sep 2023 20:09:18 +0800 Subject: [PATCH] d --- features/cm/ne.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cm/ne.go b/features/cm/ne.go index 7738674c..a06c2cc6 100644 --- a/features/cm/ne.go +++ b/features/cm/ne.go @@ -606,7 +606,7 @@ func ImportCmToNF(w http.ResponseWriter, r *http.Request) { return } neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName - unzipCmd := fmt.Sprintf("ssh sudo unzip -o %s -d %s", neFilePath, config.GetYamlConfig().NE.EtcDir) + unzipCmd := fmt.Sprintf("sudo unzip -o %s -d %s", neFilePath, config.GetYamlConfig().NE.EtcDir) sshHost := fmt.Sprintf("%s@%s", config.GetYamlConfig().NE.User, neInfo.Ip) cmd := exec.Command("ssh", sshHost, unzipCmd) out, err := cmd.CombinedOutput()