From 716b39ef7090bec76189042251f7ac7e524c1ad4 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 11 Oct 2023 14:28:02 +0800 Subject: [PATCH] d --- features/cm/license.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cm/license.go b/features/cm/license.go index 8b8fbc21..ad2cf1e9 100644 --- a/features/cm/license.go +++ b/features/cm/license.go @@ -269,7 +269,7 @@ func UploadLicenseFileData(w http.ResponseWriter, r *http.Request) { // replace system.ini neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + licenseFileName - cpCmd = fmt.Sprintf("sudo cp -f %s %s/system.ini && sudo rm -rf %s", neFilePath, neLicensePath, neFilePath) + cpCmd = fmt.Sprintf("sudo mv -f %s %s/system.ini", neFilePath, neLicensePath) cmd = exec.Command("ssh", sshHost, cpCmd) out, err = cmd.CombinedOutput() log.Debugf("Exec output: %v", string(out))