license
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user