()
| 297 | } |
| 298 | |
| 299 | func (n *NFSServerSetup) reloadNFSExports() error { |
| 300 | if output, err := cmd.NewExecutor("", "exportfs", "-ra").ExecuteOutput(); err != nil { |
| 301 | return fmt.Errorf("failed to export NFS exports -> %s -> %w", output, err) |
| 302 | } |
| 303 | color.PrintHint("✔ export NFS exports (exportfs -ra)") |
| 304 | return nil |
| 305 | } |
| 306 | |
| 307 | func (n *NFSServerSetup) assignAppendOnlyAttribute() error { |
| 308 | args := []string{n.nfsDir, "-type", "d", "-exec", "chattr", "+a", "{}", ";"} |
no test coverage detected