Simplify multisite acceptance tests setup

[MAILPOET-2302]
This commit is contained in:
Jan Jakeš
2019-09-02 17:15:03 +02:00
committed by M. Shull
parent 4177c1541d
commit 8896e493f9
2 changed files with 20 additions and 36 deletions

View File

@ -36,7 +36,7 @@ mysqladmin --host=mysql --user=root --password=wordpress create wordpress --forc
# install WordPress
WP_CORE_INSTALL_PARAMS="--url=test.local --title=tests --admin_user=admin --admin_email=test@test.com --admin_password=password --skip-email"
if [ -z "${MULTISITE}" ]; then
if [[ -z "$MULTISITE" || "$MULTISITE" -eq "0" ]]; then
echo 'Installing WordPress (single site mode)'
wp core install $WP_CORE_INSTALL_PARAMS
else