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

fix username check

This commit is contained in:
Julien Malik 2014-07-02 15:35:08 +02:00
parent 7477239a5c
commit a2ff0eeffe

View file

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