1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00

Merge pull request #5 from mat-mo/master

check if admin exists in case insensetive
This commit is contained in:
monsieur-a 2015-01-16 07:58:58 +01:00
commit 97d5929646

View file

@ -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