From 5e91b5c780424434d8ecd99d05206c9421fb9cc9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Oct 2018 14:23:40 +0000 Subject: [PATCH] Smol fix to remove {CRYPT} in front of hash --- src/yunohost/data_migrations/0006_migrate_pwd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/data_migrations/0006_migrate_pwd.py b/src/yunohost/data_migrations/0006_migrate_pwd.py index c8030498..6413086a 100644 --- a/src/yunohost/data_migrations/0006_migrate_pwd.py +++ b/src/yunohost/data_migrations/0006_migrate_pwd.py @@ -50,7 +50,8 @@ class MyMigration(Migration): | tr -d '\n ' \ | tr ':' ' ' \ | awk '{print $2}' \ - | base64 -d") + | base64 -d \ + | sed 's/{CRYPT}//g'") return admin_hash def _replace_root_hash(self, new_hash):