Skip to content

Commit

Permalink
Fix sudo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianSzymanski authored Oct 30, 2020
1 parent d4237c9 commit 8ee2029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ func (i *lxdInstance) RunScript(ctx gocontext.Context, output io.Writer) (*RunRe
}

// Setup the arguments
cmd := []string{"sudo", "-E", "-u", "travis", "--"}
cmd := []string{"sudo", "-h", "localhost", "-E", "-u", "travis", "--"}
cmd = append(cmd, i.provider.runCmd...)
exec := lxdapi.ContainerExecPost{
Command: cmd,
Expand Down

0 comments on commit 8ee2029

Please sign in to comment.