@@ -51,21 +51,6 @@ public function __get( $key ) {
51
51
*/
52
52
private function init_ee () {
53
53
54
- // Minimum requirement checks.
55
- $ docker_running = 'docker ps > /dev/null ' ;
56
- if ( ! EE ::exec ( $ docker_running ) ) {
57
- EE ::error ( 'docker not installed or not running. ' );
58
- }
59
-
60
- $ docker_compose_installed = 'command -v docker-compose > /dev/null ' ;
61
- if ( ! EE ::exec ( $ docker_compose_installed ) ) {
62
- EE ::error ( 'EasyEngine requires docker-compose. ' );
63
- }
64
-
65
- if ( version_compare ( PHP_VERSION , '7.2.0 ' ) < 0 ) {
66
- EE ::error ( 'EasyEngine requires minimum PHP 7.2.0 to run. ' );
67
- }
68
-
69
54
$ this ->ensure_present_in_config ( 'locale ' , 'en_US ' );
70
55
$ this ->ensure_present_in_config ( 'ee_installer_version ' , 'stable ' );
71
56
@@ -76,7 +61,31 @@ private function init_ee() {
76
61
if ( ! is_dir ( $ db_dir ) ) {
77
62
mkdir ( $ db_dir );
78
63
}
79
- $ this ->maybe_trigger_migration ();
64
+
65
+ if (
66
+ ! empty ( $ this ->arguments ) &&
67
+ ( 'help ' !== $ this ->arguments [0 ] )
68
+ && $ this ->arguments !== [ 'cli ' , 'version ' ]
69
+ )
70
+ {
71
+
72
+ // Minimum requirement checks.
73
+ $ docker_running = 'docker ps > /dev/null ' ;
74
+ if ( ! EE ::exec ( $ docker_running ) ) {
75
+ EE ::error ( 'docker not installed or not running. ' );
76
+ }
77
+
78
+ $ docker_compose_installed = 'command -v docker-compose > /dev/null ' ;
79
+ if ( ! EE ::exec ( $ docker_compose_installed ) ) {
80
+ EE ::error ( 'EasyEngine requires docker-compose. ' );
81
+ }
82
+
83
+ if ( version_compare ( PHP_VERSION , '7.2.0 ' ) < 0 ) {
84
+ EE ::error ( 'EasyEngine requires minimum PHP 7.2.0 to run. ' );
85
+ }
86
+
87
+ $ this ->maybe_trigger_migration ();
88
+ }
80
89
}
81
90
82
91
/**
0 commit comments