Skip to content

Commit 2c3ba27

Browse files
committed
Correct directory for drush install
1 parent 4faf7b5 commit 2c3ba27

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

RoboFile.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ function install($opts = ['pantheon' => FALSE]) {
126126
EOF';
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
}

0 commit comments

Comments
 (0)