fix(user): user correct primary group flag for useradd

This commit is contained in:
Jonathan Boulle 2014-05-07 14:06:51 -07:00
parent 47b536532d
commit 7bed1307e1

View File

@ -53,7 +53,7 @@ func CreateUser(u *User) error {
} }
if u.PrimaryGroup != "" { if u.PrimaryGroup != "" {
args = append(args, "--primary-group", u.PrimaryGroup) args = append(args, "--gid", u.PrimaryGroup)
} }
if len(u.Groups) > 0 { if len(u.Groups) > 0 {