mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Gotta remove that '{CRYPT}' thing here too
This commit is contained in:
parent
feb45578db
commit
848a6b6088
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ def tools_adminpw(auth, new_password):
|
|||
|
||||
with open('/etc/shadow', 'w') as after_file:
|
||||
after_file.write(before.replace("root:" + hash_root,
|
||||
"root:" + new_hash))
|
||||
"root:" + new_hash.replace('{CRYPT}', '')))
|
||||
except IOError as e:
|
||||
logger.warning(m18n.n('root_password_desynchronized'))
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue