Skip to content

Commit

Permalink
Merge branch 'develop' for v3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrobot47 committed Oct 8, 2024
2 parents 11c1eb4 + 09af1a6 commit f7ffa59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function create( $args, $assoc_args ) {
$this->site_data['db_port'] = empty( $arg_host_port[1] ) ? '3306' : $arg_host_port[1];
}
}
$this->site_data['app_admin_email'] = \EE\Utils\get_flag_value( $assoc_args, 'admin_email', strtolower( 'admin@' . $this->site_data['site_url'] ) );
$this->site_data['app_admin_email'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-email', strtolower( 'admin@' . $this->site_data['site_url'] ) );
$this->skip_status_check = \EE\Utils\get_flag_value( $assoc_args, 'skip-status-check' );
$this->force = \EE\Utils\get_flag_value( $assoc_args, 'force' );

Expand Down Expand Up @@ -476,7 +476,7 @@ private function configure_site_files() {

// Assign www-data user ownership.
chdir( $this->site_data['site_fs_path'] );
\EE_DOCKER::docker_compose_exec( sprintf( 'chown -R www-data: %s', $this->site_data['site_container_fs_path'], 'php', 'bash', 'root' ) );
\EE_DOCKER::docker_compose_exec( 'chown -R www-data: /var/www/', 'php', 'bash', 'root' );

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

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

}

0 comments on commit f7ffa59

Please sign in to comment.