Skip to content

Commit

Permalink
Merge branch 'develop' for v1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrobot47 committed Nov 16, 2024
2 parents 9a38a3e + b7de5af commit aa429e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,12 +1108,12 @@ private function wp_download_and_config( $assoc_args ) {
\EE_DOCKER::docker_compose_exec( 'chown -R www-data: /var/www/', 'php', 'bash', 'root' );

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

$retry = 0;

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

0 comments on commit aa429e3

Please sign in to comment.