clobber the RELEASE file from ir-bootstrap
[eostre.git] / dbd-autobuild / 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
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
16 vendor/bin/drush dl drupal-7
17
18 # make drupal our webroot
19 mv html html-stock
20 ln -s drupal-7* html