[ Agent ] [ Base ] - nfs-server nfs
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
// 下载模板文件
|
||||
|
||||
Reference in New Issue
Block a user