From 848a6b6088a6163767711eb844182eca72456e7c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Oct 2018 15:18:44 +0000 Subject: [PATCH] Gotta remove that '{CRYPT}' thing here too --- src/yunohost/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 7221e6804..9bd4c9e88 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -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