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:
parent
8e2a633a60
commit
578f57a139
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if admin exists
|
# 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
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo "Wrong admin"
|
echo "Wrong admin"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue