fix(user): user correct primary group flag for useradd
This commit is contained in:
parent
47b536532d
commit
7bed1307e1
@ -53,7 +53,7 @@ func CreateUser(u *User) error {
|
||||
}
|
||||
|
||||
if u.PrimaryGroup != "" {
|
||||
args = append(args, "--primary-group", u.PrimaryGroup)
|
||||
args = append(args, "--gid", u.PrimaryGroup)
|
||||
}
|
||||
|
||||
if len(u.Groups) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user