1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

check if admin exists in case insensetive

This will support pre beta 2 users. without it, every test fails.
This commit is contained in:
matanya 2014-10-20 15:52:51 +03:00
parent 8e2a633a60
commit 578f57a139

View file

@ -12,7 +12,7 @@ if [[ ! $? -eq 0 ]]; then
fi
# Check if admin exists
sudo yunohost user list --json | grep -q "\"username\": \"$admin_ampache\""
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_ampache\""
if [[ ! $? -eq 0 ]]; then
echo "Wrong admin"
exit 1