Skip to content

Commit f7ffa59

Browse files
committed
Merge branch 'develop' for v3.3.2
2 parents 11c1eb4 + 09af1a6 commit f7ffa59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PHP.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function create( $args, $assoc_args ) {
299299
$this->site_data['db_port'] = empty( $arg_host_port[1] ) ? '3306' : $arg_host_port[1];
300300
}
301301
}
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'] ) );
303303
$this->skip_status_check = \EE\Utils\get_flag_value( $assoc_args, 'skip-status-check' );
304304
$this->force = \EE\Utils\get_flag_value( $assoc_args, 'force' );
305305

@@ -476,7 +476,7 @@ private function configure_site_files() {
476476

477477
// Assign www-data user ownership.
478478
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' );
480480

481481
\EE::success( 'Configuration files copied.' );
482482
} catch ( \Exception $e ) {
@@ -973,7 +973,7 @@ private function catch_clean( $e ) {
973973
$this->delete_site( $this->level, $this->site_data['site_url'], $this->site_data['site_fs_path'], $db_data );
974974
\EE\Utils\delem_log( 'site cleanup end' );
975975
\EE::log( 'Report bugs here: https://github.com/EasyEngine/site-type-php' );
976-
exit;
976+
exit( 1 );
977977
}
978978

979979
/**
@@ -990,7 +990,7 @@ protected function rollback() {
990990
$this->delete_site( $this->level, $this->site_data['site_url'], $this->site_data['site_fs_path'], $db_data );
991991
}
992992
\EE::success( 'Rollback complete. Exiting now.' );
993-
exit;
993+
exit( 1 );
994994
}
995995

996996
}

0 commit comments

Comments
 (0)