From 4311562c900d65563aeecdefa1456ac34663a1ae Mon Sep 17 00:00:00 2001 From: matanya Date: Thu, 27 Nov 2014 23:35:22 +0200 Subject: [PATCH] check if admin exists in case insensetive This supports pre-beta V2 installations. --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 66b8e6a..29846ef 100644 --- a/scripts/install +++ b/scripts/install @@ -7,7 +7,7 @@ user=$3 is_public=$4 # Check user parameter -sudo yunohost user list --json | grep -q "\"username\": \"$user\"" +sudo yunohost user list --json | grep -qi "\"username\": \"$user\"" if [[ ! $? -eq 0 ]]; then echo "Wrong user" exit 1