From a2ff0eeffe6e6b562e921aba3e82b053d0680577 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Wed, 2 Jul 2014 15:35:08 +0200 Subject: [PATCH] fix username check --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 057bdaa..7f18f93 100644 --- a/scripts/install +++ b/scripts/install @@ -14,7 +14,7 @@ if [[ "$path" = "/ghost" ]]; then fi # Check that admin user is an existing account -sudo yunohost user list | python ../conf/user_list.py | grep "^$admin$" >/dev/null +sudo yunohost user list --json | grep -q "\"username\": \"$admin\"" if [[ ! $? -eq 0 ]]; then echo "Error : the chosen admin user does not exist" exit 1