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

check if admin exists in case insensetive

This supports pre-beta V2 installations.
This commit is contained in:
matanya 2014-11-27 23:35:22 +02:00
parent a5f726099b
commit 4311562c90

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