correct groups check output from stderr to stdout

pull/15513/head
Kaylen Dart 2022-12-14 18:10:55 +00:00
parent 0be72ee60b
commit 24428fdbd1
No known key found for this signature in database
GPG Key ID: F41160CC3197924D
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (d *Driver) Create() error {
if err != nil {
return errors.Wrap(err, "groups")
}
if !strings.Contains(groups.Stderr.String(), "docker") {
if !strings.Contains(groups.Stdout.String(), "docker") {
if _, err := d.exec.RunCmd(exec.Command("sudo", "usermod", "-aG", "docker", d.GetSSHUsername())); err != nil {
return errors.Wrap(err, "usermod")
}