adding files to git
[eostre.git] / files / install-drupal-toolchain.sh
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
8 cd /var/www/html
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
15 cd /var/www/html
16 vendor/bin/drush dl drupal-7