Commit
769474052ccfc24483a068a1796cf166f0bfeb65
Authored by
matanya
check if admin exists in case insensetive
to support pre-beta2 installs.
Showing
1 changed file
with
1 additions
and
1 deletions
Side-by-side Diff
| ... |
... |
@@ -6,7 +6,7 @@ path=$2 |
|
6
|
6 |
user=$3 |
|
7
|
7 |
|
|
8
|
8 |
# Check user parameter |
|
9
|
|
-sudo yunohost user list --json | grep -q "\"username\": \"$user\"" |
|
|
9 |
+sudo yunohost user list --json | grep -qi "\"username\": \"$user\"" |
|
10
|
10 |
if [[ ! $? -eq 0 ]]; then |
|
11
|
11 |
echo "Wrong user" |
|
12
|
12 |
exit 1 |