diff --git a/scripts/install b/scripts/install index 9a342fd..4565a63 100755 --- a/scripts/install +++ b/scripts/install @@ -12,7 +12,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$" >/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