From 94a43d74d1e5f07150a3ab9456751b39bc8b6382 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Wed, 2 Oct 2024 22:36:38 +0530 Subject: [PATCH 1/2] Update to exit 1 on failure rollback Signed-off-by: Riddhesh Sanghvi --- src/site-type/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site-type/HTML.php b/src/site-type/HTML.php index 63465c39..c36dfc8e 100644 --- a/src/site-type/HTML.php +++ b/src/site-type/HTML.php @@ -454,6 +454,6 @@ protected function rollback() { } \EE::success( 'Rollback complete. Exiting now.' ); - exit; + exit( 1 ); } } From ca32e7487da2132ac74b54887c428a1eab82853b Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Thu, 3 Oct 2024 17:21:59 +0530 Subject: [PATCH 2/2] Update to exit 1 on site creation failure cleanup Signed-off-by: Riddhesh Sanghvi --- src/site-type/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site-type/HTML.php b/src/site-type/HTML.php index c36dfc8e..39869625 100644 --- a/src/site-type/HTML.php +++ b/src/site-type/HTML.php @@ -440,7 +440,7 @@ private function catch_clean( $e ) { $this->delete_site( $this->level, $this->site_data['site_url'], $this->site_data['site_fs_path'] ); \EE\Utils\delem_log( 'site cleanup end' ); \EE::log( 'Report bugs here: https://github.com/EasyEngine/site-command' ); - exit; + exit( 1 ); } /**