From 60840ed92d91fc60a7ad9731e8fb87db31672926 Mon Sep 17 00:00:00 2001 From: Willington Vega Date: Fri, 11 Oct 2019 14:03:51 -0500 Subject: [PATCH] Allow wp core download in a subdir of an existing website Without `--path` WP-CLI exits with an error indicating that "WordPress files seem to already be present here". --- wpv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpv.sh b/wpv.sh index a826cfc..027c1ef 100755 --- a/wpv.sh +++ b/wpv.sh @@ -122,7 +122,7 @@ cd "$DEST_DIR" mysql -uroot -e "CREATE DATABASE ${DB_NAME}" # WP core config. -wp core download +wp core download --path="$DEST_DIR" wp core config --dbname=$DB_NAME --dbuser=root --dbpass='' --extra-php <<-PHP define( 'WP_DEBUG', true );