1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Removed user test, yunohost deal with the issue itself by displaying only existing user

This commit is contained in:
Rémy Garrigue 2015-08-20 14:39:51 +00:00
parent d9bc7b3f19
commit 6848dc8a73

View file

@ -13,14 +13,6 @@ if [[ ! $? -eq 0 ]]; then
fi
admin=$3
# Check that given user is an existing yunohost user
sudo yunohost user list | grep username | cut -d' ' -f6 | grep $admin
if [[ ! $? -eq 1 ]]; then
echo "I can't find user '$admin' in yunohost's username list, installation canceled"
exit 2
fi
admin_password=$4
is_public=$5
directory=/var/www/$app/