Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Jul 24, 2023
1 parent 4409d28 commit 1011257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/exec/util/passwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (u Util) EnsureUser(c types.PasswdUser) error {
}
if !shouldExist {
if exists {
args := []string{"--remove", "--root", u.DestDir, c.Name}
_, err := u.LogCmd(exec.Command(distro.UserdelCmd(), args...),
args := []string{u.DestDir, distro.UserdelCmd(), "--remove", c.Name}
_, err := u.LogCmd(exec.Command(distro.ChrootCmd(), args...),
"deleting user %q", c.Name)
if err != nil {
return fmt.Errorf("failed to delete user %q: %v",
Expand Down

0 comments on commit 1011257

Please sign in to comment.