@@ -374,7 +374,7 @@ private function maybe_verify_remote_db_connection() {
374
374
// The since we're inside the container and we want to access host machine,
375
375
// we would need to replace localhost with default gateway.
376
376
if ( $ this ->site_data ['db_host ' ] === '127.0.0.1 ' || $ this ->site_data ['db_host ' ] === 'localhost ' ) {
377
- $ launch = \EE ::exec ( sprintf ( "docker network inspect %s --format='{{ (index .IPAM.Config 0).Gateway }}' " , $ this ->site_data ['site_url ' ] ), false , true );
377
+ $ launch = \EE ::launch ( sprintf ( "docker network inspect %s --format='{{ (index .IPAM.Config 0).Gateway }}' " , $ this ->site_data ['site_url ' ] ) );
378
378
379
379
if ( ! $ launch ->return_code ) {
380
380
$ this ->site_data ['db_host ' ] = trim ( $ launch ->stdout , "\n" );
@@ -553,7 +553,11 @@ private function install_wp() {
553
553
$ install_command .= $ this ->site_data ['app_admin_password ' ] ? sprintf ( ' --admin_password= \'%s \'' , $ this ->site_data ['app_admin_password ' ] ) : '' ;
554
554
$ install_command .= sprintf ( ' --admin_email= \'%s \' %s ' , $ this ->site_data ['app_admin_email ' ], $ maybe_multisite_type );
555
555
556
- $ core_install = \EE ::exec ( $ install_command );
556
+ $ core_install = \EE ::exec ( $ install_command , false , false , [
557
+ $ this ->site_data ['app_admin_username ' ],
558
+ $ this ->site_data ['app_admin_email ' ],
559
+ $ this ->site_data ['app_admin_password ' ],
560
+ ] );
557
561
558
562
if ( ! $ core_install ) {
559
563
\EE ::warning ( 'WordPress install failed. Please check logs. ' );
0 commit comments