Browse Source

Update install

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

5
scripts/install

@ -7,8 +7,9 @@ admin_wordpress=$3
language=$4 language=$4
is_public=$5 is_public=$5
# Check if admin password is not null
if [ "$admin_wordpress" = "" ]; then
# Check if admin exists
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

Loading…
Cancel
Save