@@ -208,7 +208,7 @@ public function create( $args, $assoc_args ) {
208
208
$ this ->site_data ['db_port ' ] = empty ( $ arg_host_port [1 ] ) ? '3306 ' : $ arg_host_port [1 ];
209
209
}
210
210
211
- $ this ->site_data ['app_admin_email ' ] = \EE \Utils \get_flag_value ( $ assoc_args , 'admin_email ' , strtolower ( 'admin@ ' . $ this ->site_data ['site_url ' ] ) );
211
+ $ this ->site_data ['app_admin_email ' ] = \EE \Utils \get_flag_value ( $ assoc_args , 'admin-email ' , strtolower ( 'admin@ ' . $ this ->site_data ['site_url ' ] ) );
212
212
$ this ->skip_install = \EE \Utils \get_flag_value ( $ assoc_args , 'skip-install ' );
213
213
$ this ->skip_status_check = \EE \Utils \get_flag_value ( $ assoc_args , 'skip-status-check ' );
214
214
$ this ->force = \EE \Utils \get_flag_value ( $ assoc_args , 'force ' );
@@ -548,7 +548,8 @@ private function install_wp() {
548
548
$ maybe_multisite_type = $ this ->site_data ['app_sub_type ' ] === 'subdom ' ? '--subdomains ' : '' ;
549
549
}
550
550
551
- $ install_command = sprintf ( 'docker-compose exec --user= \'www-data \' php wp core %s --url= \'%s \' --title= \'%s \' --admin_user= \'%s \'' , $ wp_install_command , $ this ->site_data ['site_url ' ], $ this ->site_data ['app_admin_url ' ], $ this ->site_data ['app_admin_username ' ] );
551
+ $ prefix = ( $ this ->site_data ['site_ssl ' ] ) ? 'https:// ' : 'http:// ' ;
552
+ $ install_command = sprintf ( 'docker-compose exec --user= \'www-data \' php wp core %s --url= \'%s%s \' --title= \'%s \' --admin_user= \'%s \'' , $ wp_install_command , $ prefix , $ this ->site_data ['site_url ' ], $ this ->site_data ['app_admin_url ' ], $ this ->site_data ['app_admin_username ' ] );
552
553
$ install_command .= $ this ->site_data ['app_admin_password ' ] ? sprintf ( ' --admin_password= \'%s \'' , $ this ->site_data ['app_admin_password ' ] ) : '' ;
553
554
$ install_command .= sprintf ( ' --admin_email= \'%s \' %s ' , $ this ->site_data ['app_admin_email ' ], $ maybe_multisite_type );
554
555
@@ -562,7 +563,6 @@ private function install_wp() {
562
563
\EE ::warning ( 'WordPress install failed. Please check logs. ' );
563
564
}
564
565
565
- $ prefix = ( $ this ->site_data ['site_ssl ' ] ) ? 'https:// ' : 'http:// ' ;
566
566
\EE ::success ( $ prefix . $ this ->site_data ['site_url ' ] . ' has been created successfully! ' );
567
567
}
568
568
0 commit comments