1
0
Fork 0
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:
Alexis Gavoty 2014-05-29 11:54:12 +02:00
parent aabd03caa5
commit 5a3a5cd23c

View file

@ -14,7 +14,7 @@ if [[ ! $? -eq 0 ]]; then
fi
# Check user
ls /home | grep $user
sudo yunohost user list --json | grep -q '"username": "$user"'
if [[ ! $? -eq 0 ]]; then
echo "Wrong user"
exit 1