Skip to content

Commit 57ffe0f

Browse files
committed
Pantheon tmp directory is behaving oddly. Back to private directory
1 parent 657a26c commit 57ffe0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Commands/ConfigExportCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ConfigExportCommand extends SSHBaseCommand implements SiteAwareInterface {
5858
* @usage <site.env> Exports config from <site.env> to <destination>
5959
*/
6060

61-
public function configExportRemote($site_env, $options = ['destination' => '', 'remote-destination' => '', 'remove-existing' => FALSE]) {
61+
public function configExportRemote($site_env, $options = ['destination' => '', 'remote-destination' => '']) {
6262
$this->prepareEnvironment($site_env);
6363
[$this->site, $this->env] = $this->getSiteEnv($site_env);
6464
$sftp = $this->env->sftpConnectionInfo();
@@ -68,19 +68,19 @@ public function configExportRemote($site_env, $options = ['destination' => '', '
6868
// For some reason sshCommand doesn't work for this:
6969
$this->log()->notice('Verifying remote destination.');
7070
passthru($sftp['command'] . " << EOF
71-
mkdir /tmp/{$remote_destination}
71+
mkdir files/private/{$remote_destination}
7272
bye
7373
EOF 2>/dev/null");
7474
$this->log()->notice('Exporting remote config.');
75-
$this->executeCommand(['drush', 'cex', '--destination=/tmp/' . $remote_destination]);
75+
$this->executeCommand(['drush', 'cex', '--destination=private://' . $remote_destination]);
7676
$destination = $options['destination'];
7777
$this->log()->notice('Verifying local destination.');
7878
if (empty($options['destination'])) {
7979
$destination = getcwd();
8080
}
8181
$destination = rtrim($destination, '/');
8282
$this->log()->notice('Rsyncing config from remote to local.');
83-
$this->rsync($site_env, ':/tmp/' . $remote_destination . '/', $destination);
83+
$this->rsync($site_env, ':files/private/' . $remote_destination . '/', $destination);
8484
$this->log()->notice('Cleaning up file permissions.');
8585
passthru('chmod 644 ' . $destination . '/*.yml');
8686
}

0 commit comments

Comments
 (0)