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))