1c66ee26 |
1 | #!/bin/bash -xe |
2 | |
3 | # install composer |
4 | curl -sS https://getcomposer.org/installer | php |
5 | mv composer.phar /usr/local/bin/composer |
6 | |
7 | # use composer to install drush7 and the drush launcher |
c05721c7 |
8 | cd /var/www |
1c66ee26 |
9 | composer require drush/drush:8.* |
10 | wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar |
11 | chmod +x drush.phar |
12 | mv drush.phar /usr/local/bin/drush |
13 | |
14 | # use vendor/bin/drush to download drupal |
c05721c7 |
15 | cd /var/www |
1c66ee26 |
16 | vendor/bin/drush dl drupal-7 |
c05721c7 |
17 | |
18 | # make drupal our webroot |
19 | mv html html-stock |
20 | ln -s drupal-7* html |