Skip to content

Commit aa429e3

Browse files
committed
Merge branch 'develop' for v1.8.2
2 parents 9a38a3e + b7de5af commit aa429e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WordPress.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1108,12 +1108,12 @@ private function wp_download_and_config( $assoc_args ) {
11081108
\EE_DOCKER::docker_compose_exec( 'chown -R www-data: /var/www/', 'php', 'bash', 'root' );
11091109

11101110
$wp_download_path = $this->site_data['site_container_fs_path'];
1111-
$core_download_command = "wp core download --path=$wp_download_path --locale='$this->locale' $core_download_arguments";
1111+
$core_download_command = "php -d memory_limit=256M \\$(which wp) core download --path=$wp_download_path --locale='$this->locale' $core_download_arguments";
11121112

11131113
$retry = 0;
11141114

11151115
while ( $retry < 5 ) {
1116-
if ( ! \EE_DOCKER::docker_compose_exec( $core_download_command, 'php', 'bash', 'www-data' ) ) {
1116+
if ( ! \EE_DOCKER::docker_compose_exec( $core_download_command, 'php', 'bash', 'www-data', '', true ) ) {
11171117
if ( $retry++ < 5 ) {
11181118
\EE::log( 'Unable to download wp core. Retrying...' );
11191119
continue;

0 commit comments

Comments
 (0)