修复边缘节点和DNS节点安装文件冲突的问题

This commit is contained in:
刘祥超
2021-08-11 21:14:01 +08:00
parent d3e4f28c69
commit c25e3f18e0
4 changed files with 12 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
"github.com/TeaOSLab/EdgeCommon/pkg/nodeconfigs"
"path/filepath"
"regexp"
)
@@ -36,7 +37,7 @@ func (this *NodeInstaller) Install(dir string, params interface{}, installStatus
}
// 安装助手
env, err := this.InstallHelper(dir)
env, err := this.InstallHelper(dir, nodeconfigs.NodeRoleNode)
if err != nil {
installStatus.ErrorCode = "INSTALL_HELPER_FAILED"
return err