mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
[fix] Properly check YunoHost users
This commit is contained in:
parent
aabd03caa5
commit
5a3a5cd23c
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check user
|
# Check user
|
||||||
ls /home | grep $user
|
sudo yunohost user list --json | grep -q '"username": "$user"'
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo "Wrong user"
|
echo "Wrong user"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue