diff --git a/scripts/install b/scripts/install index edeafbd..0de629c 100755 --- a/scripts/install +++ b/scripts/install @@ -17,7 +17,7 @@ admin_user=$3 # Check user parameter if not empty if [[ $admin_user != '' ]]; then - sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\"" + ynh_user_exists $admin_user if [[ ! $? -eq 0 ]]; then echo "Wrong user" exit 1