mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Ugh, this gotta go into an m18n.n to work...
This commit is contained in:
parent
0397aa91d9
commit
a2b4e151e4
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ def user_group_create(operation_logger, groupname, gid=None, primary_group=False
|
|||
all_existing_groupnames = {x.gr_name for x in grp.getgrall()}
|
||||
if groupname in all_existing_groupnames:
|
||||
if primary_group:
|
||||
logger.warning('group_already_exist_on_system_but_removing_it', group=groupname)
|
||||
logger.warning(m18n.n('group_already_exist_on_system_but_removing_it', group=groupname))
|
||||
subprocess.check_call("sed --in-place '/^%s:/d' /etc/group" % groupname, shell=True)
|
||||
else:
|
||||
raise YunohostError('group_already_exist_on_system', group=groupname)
|
||||
|
|
Loading…
Add table
Reference in a new issue