[ Agent ] [ Base ] - nfs-server nfs

This commit is contained in:
zeaslity
2023-11-21 17:13:31 +08:00
parent 48e8a6c951
commit 55d0772d50
5 changed files with 191 additions and 6 deletions

View File

@@ -282,12 +282,10 @@ func (op *AgentOsOperator) deployNFS(funcArgs []string) (bool, []string) {
return false, result
}
// 创建目录修改权限
if !PureResultSingleExecuteBatch([][]string{
{"mkdir", "-p", nfsDataPath},
{"chmod", "777", nfsDataPath},
}) {
result = append(result, "目录不存在", nfsDataPath)
return false, result
if !BasicFolderExists(nfsDataPath) {
return false, []string{
fmt.Sprintf("[deployNFS] - folder of [ %s ] not exist ! nfs not installed ", nfsDataPath),
}
}
// 下载模板文件