mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
check if admin exists in case insensetive
This supports pre-beta V2 installations.
This commit is contained in:
parent
a5f726099b
commit
4311562c90
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ user=$3
|
|||
is_public=$4
|
||||
|
||||
# Check user parameter
|
||||
sudo yunohost user list --json | grep -q "\"username\": \"$user\""
|
||||
sudo yunohost user list --json | grep -qi "\"username\": \"$user\""
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Wrong user"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue