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:
commit
3f0d4694e7
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