1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

No need for external python script anymore

This commit is contained in:
Alexis Gavoty 2014-05-29 12:06:12 +02:00
parent 485829414c
commit 5919592ac5

View file

@ -14,7 +14,7 @@ if [[ ! $? -eq 0 ]]; then
fi fi
# Check that admin user is an existing account # Check that admin user is an existing account
sudo yunohost user list | python ../conf/user_list.py | grep "^$admin_user$" >/dev/null sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\""
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
echo "Error : the chosen admin user does not exist" echo "Error : the chosen admin user does not exist"
exit 1 exit 1