Browse Source

[fix] Properly check YunoHost users

pull/1/head
Alexis Gavoty 12 years ago
parent
commit
5a3a5cd23c
  1. 2
      scripts/install

2
scripts/install

@ -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…
Cancel
Save