1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Update install

This commit is contained in:
Alexis Gavoty 2014-05-29 11:18:29 +02:00
parent 0c462bb40a
commit d6bd4ecbd3

View file

@ -7,8 +7,9 @@ admin_wordpress=$3
language=$4 language=$4
is_public=$5 is_public=$5
# Check if admin password is not null # Check if admin exists
if [ "$admin_wordpress" = "" ]; then sudo yunohost user list --json | grep -q '"username": "$admin_wordpress"'
if [[ ! $? -eq 0 ]]; then
echo "Wrong admin" echo "Wrong admin"
exit 1 exit 1
fi fi