d
This commit is contained in:
1 parent
97cca20b51
commit
446764194d
1 file changed
+1
-1
+1
-1
@@ -606,7 +606,7 @@ func ImportCmToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName
|
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)
|
sshHost := fmt.Sprintf("%s@%s", config.GetYamlConfig().NE.User, neInfo.Ip)
|
||||||
cmd := exec.Command("ssh", sshHost, unzipCmd)
|
cmd := exec.Command("ssh", sshHost, unzipCmd)
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
|
|||||||
Reference in new issue
Block a user