(username string)
| 237 | } |
| 238 | |
| 239 | func (n *NFSServerSetup) changeDirOwnership(username string) error { |
| 240 | if output, err := cmd.NewExecutor("", "chown", "-R", username+":"+username, n.nfsDir).ExecuteOutput(); err != nil { |
| 241 | return fmt.Errorf("failed to change ownership of %q to %q -> %s -> %w", n.nfsDir, username, output, err) |
| 242 | } |
| 243 | |
| 244 | color.PrintHint("✔ change ownership of %q to %q", n.nfsDir, username) |
| 245 | return nil |
| 246 | } |
| 247 | |
| 248 | func (n *NFSServerSetup) changeModeForDirsFiles() error { |
| 249 | dirPerm := fmt.Sprintf("%o", fileio.CacheDirPerm) |
no test coverage detected