diff --git a/scripts/install b/scripts/install index 5debcc0..106128d 100755 --- a/scripts/install +++ b/scripts/install @@ -14,7 +14,7 @@ if [[ ! $? -eq 0 ]]; then fi # Check that admin user is an existing account -sudo yunohost user list | python ../conf/user_list.py | grep "^$admin_user$" >/dev/null +sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\"" if [[ ! $? -eq 0 ]]; then echo "Error : the chosen admin user does not exist" exit 1