@@ -58,7 +58,7 @@ class ConfigExportCommand extends SSHBaseCommand implements SiteAwareInterface {
58
58
* @usage <site.env> Exports config from <site.env> to <destination>
59
59
*/
60
60
61
- public function configExportRemote ($ site_env , $ options = ['destination ' => '' , 'remote-destination ' => '' , ' remove-existing ' => FALSE ]) {
61
+ public function configExportRemote ($ site_env , $ options = ['destination ' => '' , 'remote-destination ' => '' ]) {
62
62
$ this ->prepareEnvironment ($ site_env );
63
63
[$ this ->site , $ this ->env ] = $ this ->getSiteEnv ($ site_env );
64
64
$ sftp = $ this ->env ->sftpConnectionInfo ();
@@ -68,19 +68,19 @@ public function configExportRemote($site_env, $options = ['destination' => '', '
68
68
// For some reason sshCommand doesn't work for this:
69
69
$ this ->log ()->notice ('Verifying remote destination. ' );
70
70
passthru ($ sftp ['command ' ] . " << EOF
71
- mkdir /tmp / {$ remote_destination }
71
+ mkdir files/private / {$ remote_destination }
72
72
bye
73
73
EOF 2>/dev/null " );
74
74
$ this ->log ()->notice ('Exporting remote config. ' );
75
- $ this ->executeCommand (['drush ' , 'cex ' , '--destination=/tmp / ' . $ remote_destination ]);
75
+ $ this ->executeCommand (['drush ' , 'cex ' , '--destination=private:/ / ' . $ remote_destination ]);
76
76
$ destination = $ options ['destination ' ];
77
77
$ this ->log ()->notice ('Verifying local destination. ' );
78
78
if (empty ($ options ['destination ' ])) {
79
79
$ destination = getcwd ();
80
80
}
81
81
$ destination = rtrim ($ destination , '/ ' );
82
82
$ 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 );
84
84
$ this ->log ()->notice ('Cleaning up file permissions. ' );
85
85
passthru ('chmod 644 ' . $ destination . '/*.yml ' );
86
86
}
0 commit comments