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

Merge pull request #2 from mat-mo/master

check if admin exists in case insensetive
This commit is contained in:
abeudin 2014-10-21 09:07:00 +02:00
commit 3f0d4694e7

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