drush-ops / drush

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
https://www.drush.org
2.33k stars 1.08k forks source link

archive-restore isn't using TMP environment variable for temp files #3831

Open ghost opened 5 years ago

ghost commented 5 years ago

Describe the bug When running archive restore it tries to unpack the archive file into the /tmp directory even if the $TMP environment variable set to somewhere else

To Reproduce cd /var/www/drupal; export TMP=/var/www/temp ; sudo -E /root/.composer/vendor/bin/drush archive-restore ltg.tar

Expected behavior I'd expect that the tar file is unpacked under /var/www/temp

Actual behavior Unable to untar ltg.tar. Unable to extract site archive tarball to /tmp/drush_tmp_1544612915_5c10ec332c3b1.

Workaround couldn't find any

System Configuration

Q A
Drush version? 8.1.18
Drupal version? 7.59
PHP version 5.6
OS? Amazon Linux

Additional information Add any other context about the problem here.

weitzman commented 5 years ago

archive has been removed from drush9 so maintainers arent actively working on it. we would review a PR on it though. I dont know offhand how restore chooses unpack location.