File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ function install($opts = ['pantheon' => FALSE]) {
126126EOF ' ;
127127 $ this ->_exec ($ sftp_command );
128128
129+ // Run the installation.
130+ $ result = $ this ->taskExec ($ install_cmd )
131+ ->run ();
132+
133+ // Put the site back into git mode.
134+ $ this ->_exec ('terminus site set-connection-mode --mode=git ' );
129135 }
130136 else {
131137 // Install dependencies. Only works locally.
@@ -134,22 +140,17 @@ function install($opts = ['pantheon' => FALSE]) {
134140 ->run ();
135141
136142 $ this ->_chmod ($ this ->projectProperties ['web_root ' ] . '/sites/default/settings.php ' , 0755 );
137-
138143 $ install_cmd = 'drush ' . $ install_cmd ;
144+
145+ // Run the installation.
146+ $ result = $ this ->taskExec ($ install_cmd )
147+ ->dir ($ this ->projectProperties ['web_root ' ])
148+ ->run ();
139149 }
140150
141151 // Set our install to TRUE to disable file based config on install.
142152// putenv("DRUPAL_INSTALL=TRUE");
143153
144- // Run the installation.
145- $ result = $ this ->taskExec ($ install_cmd )
146- ->run ();
147-
148- if ($ pantheon ) {
149- // Put the site back into git mode.
150- $ this ->_exec ('terminus site set-connection-mode --mode=git ' );
151- }
152-
153154 if ($ result ->wasSuccessful ()) {
154155 $ this ->say ('Install complete ' );
155156 }
You can’t perform that action at this time.
0 commit comments