Skip to content

Commit

Permalink
fix mkdir command
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Oct 3, 2024
1 parent 9e8f70b commit e3101b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/datamovement_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,9 @@ func createDestinationDir(profile *nnfv1alpha2.NnfDataMovementProfile, dm *nnfv1
return nil
}

// TODO mkdir command?
// Use setpriv to create the directory with the specified UID/GID
cmd := fmt.Sprintf("mpirun --hostfile %s -- setpriv --euid %d --egid %d --clear-groups mkdir -p %s",
cmd := fmt.Sprintf("mpirun --allow-run-as-root --hostfile %s -- setpriv --euid %d --egid %d --clear-groups mkdir -p %s",
mpiHostfile, dm.Spec.UserId, dm.Spec.GroupId, dest)
output, err := command.Run(cmd, log)
if err != nil {
Expand Down

0 comments on commit e3101b0

Please sign in to comment.