fix: lint

This commit is contained in:
耗子
2026-02-12 22:33:22 +08:00
parent 8e76c6c3b2
commit c2001a477c
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -29,7 +29,6 @@ import (
"github.com/spf13/cast"
"resty.dev/v3"
"github.com/tnborg/panel/internal/app"
"github.com/tnborg/panel/internal/biz"
"github.com/tnborg/panel/internal/http/request"
"github.com/tnborg/panel/pkg/shell"
@@ -454,7 +453,7 @@ func (s *ToolboxMigrationService) migrateWebsite(conn *request.ToolboxMigrationC
}
// 上传网站目录到远程
siteDir := filepath.Join(app.Root, "sites", site.Name, "public")
siteDir := filepath.Join("/opt/ace", "sites", site.Name, "public")
s.addLog(fmt.Sprintf("[%s] %s %s", site.Name, s.t.Get("uploading directory:"), siteDir))
if err = s.uploadDirToRemote(conn, websiteDetail.Path, siteDir); err != nil {
s.failResult("website", site.Name, s.t.Get("upload failed: %v", err))
+1 -1
View File
@@ -37,7 +37,7 @@ export default {
path: 'migration',
component: () => import('./MigrationView.vue'),
meta: {
title: '迁移',
title: '迁移 3.0',
role: ['admin'],
requireAuth: true
}