mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] also invalidate group cache
This commit is contained in:
parent
c0f94ba98a
commit
68d6ed911e
1 changed files with 2 additions and 1 deletions
|
@ -201,8 +201,9 @@ def user_create(operation_logger, username, firstname, lastname, mail, password,
|
|||
except Exception as e:
|
||||
raise YunohostError('user_creation_failed', user=username, error=e)
|
||||
|
||||
# Invalidate passwd to take user creation into account
|
||||
# Invalidate passwd and group to take user and group creation into account
|
||||
subprocess.call(['nscd', '-i', 'passwd'])
|
||||
subprocess.call(['nscd', '-i', 'group'])
|
||||
|
||||
try:
|
||||
# Attempt to create user home folder
|
||||
|
|
Loading…
Add table
Reference in a new issue