Merge branch 'main-v2' into lite

This commit is contained in:
TsMask
2025-07-01 10:29:04 +08:00
39 changed files with 1536 additions and 1435 deletions

View File

@@ -84,7 +84,7 @@ func (s *NeActionController) PushFile(c *gin.Context) {
localFilePath := file.ParseUploadFileAbsPath(body.UploadPath)
// 网元端临时目录
// sshClient.RunCMD("mkdir -p /tmp/omc/push && sudo chmod 777 -R /tmp/omc")
cmd.Exec("sudo mkdir -p /tmp/omc/push && sudo chmod 755 -R /tmp/omc")
cmd.Exec("sudo mkdir -p /tmp/omc/push && sudo chmod 777 -R /tmp/omc")
neFilePath := filepath.ToSlash(filepath.Join("/tmp/omc/push", filepath.Base(localFilePath)))
// 复制到远程
// if err = sftpClient.CopyFileLocalToRemote(localFilePath, neFilePath); err != nil {