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

Check admin user case insensitive

This commit is contained in:
Steven Roose 2015-08-29 02:30:34 +02:00
parent 7ac0f33801
commit 07f0e6e4f3

View file

@ -12,7 +12,7 @@ exit 1
fi
# Check that admin user is an existing account
sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\""
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\""
if [[ ! $? -eq 0 ]]; then
echo "Error : the chosen admin user does not exist"
exit 1