@@ -299,7 +299,7 @@ public function create( $args, $assoc_args ) {
299
299
$ this ->site_data ['db_port ' ] = empty ( $ arg_host_port [1 ] ) ? '3306 ' : $ arg_host_port [1 ];
300
300
}
301
301
}
302
- $ this ->site_data ['app_admin_email ' ] = \EE \Utils \get_flag_value ( $ assoc_args , 'admin_email ' , strtolower ( 'admin@ ' . $ this ->site_data ['site_url ' ] ) );
302
+ $ this ->site_data ['app_admin_email ' ] = \EE \Utils \get_flag_value ( $ assoc_args , 'admin-email ' , strtolower ( 'admin@ ' . $ this ->site_data ['site_url ' ] ) );
303
303
$ this ->skip_status_check = \EE \Utils \get_flag_value ( $ assoc_args , 'skip-status-check ' );
304
304
$ this ->force = \EE \Utils \get_flag_value ( $ assoc_args , 'force ' );
305
305
@@ -476,7 +476,7 @@ private function configure_site_files() {
476
476
477
477
// Assign www-data user ownership.
478
478
chdir ( $ this ->site_data ['site_fs_path ' ] );
479
- \EE_DOCKER ::docker_compose_exec ( sprintf ( 'chown -R www-data: %s ' , $ this -> site_data [ ' site_container_fs_path ' ], ' php ' , 'bash ' , 'root ' ) );
479
+ \EE_DOCKER ::docker_compose_exec ( 'chown -R www-data: /var/www/ ' , ' php ' , 'bash ' , 'root ' );
480
480
481
481
\EE ::success ( 'Configuration files copied. ' );
482
482
} catch ( \Exception $ e ) {
@@ -973,7 +973,7 @@ private function catch_clean( $e ) {
973
973
$ this ->delete_site ( $ this ->level , $ this ->site_data ['site_url ' ], $ this ->site_data ['site_fs_path ' ], $ db_data );
974
974
\EE \Utils \delem_log ( 'site cleanup end ' );
975
975
\EE ::log ( 'Report bugs here: https://github.com/EasyEngine/site-type-php ' );
976
- exit ;
976
+ exit ( 1 ) ;
977
977
}
978
978
979
979
/**
@@ -990,7 +990,7 @@ protected function rollback() {
990
990
$ this ->delete_site ( $ this ->level , $ this ->site_data ['site_url ' ], $ this ->site_data ['site_fs_path ' ], $ db_data );
991
991
}
992
992
\EE ::success ( 'Rollback complete. Exiting now. ' );
993
- exit ;
993
+ exit ( 1 ) ;
994
994
}
995
995
996
996
}
0 commit comments