Skip to content

Commit 972393a

Browse files
committed
Update self-uninstall dependency check
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent e3cf414 commit 972393a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php/commands/src/CLI_Command.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,11 @@ public function cmd_dump() {
494494
*/
495495
public function self_uninstall( $args, $assoc_args ) {
496496

497+
if ( ! EE::get_runner()->check_requirements( false ) ) {
498+
EE::error( 'Unable to proceed with uninstallation. Seems there is a dependency down.', false );
499+
die;
500+
}
501+
497502
EE::confirm( "Are you sure you want to remove EasyEngine and all its sites(along with their data)?\nThis is an irreversible action. No backup will be kept.", $assoc_args );
498503

499504
EE::exec( 'docker rm -f $(docker ps -aqf label=org.label-schema.vendor="EasyEngine")' );

0 commit comments

Comments
 (0)