This commit is contained in:
2023-10-11 10:47:27 +08:00
parent c6962cf537
commit af06d0f9a3

View File

@@ -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", neFilePath, neLicensePath)
cpCmd = fmt.Sprintf("sudo cp -f %s %s/system.ini && sudo rm -rf %s", neFilePath, neLicensePath, neFilePath)
cmd = exec.Command("ssh", sshHost, cpCmd)
out, err = cmd.CombinedOutput()
log.Debugf("Exec output: %v", string(out))