agave the dbd autobuild project its own directory
[eostre.git] / dbd-autobuild / files / install-drupal-toolchain.sh
diff --git a/dbd-autobuild/files/install-drupal-toolchain.sh b/dbd-autobuild/files/install-drupal-toolchain.sh
new file mode 100644 (file)
index 0000000..c8850ae
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash -xe
+
+# install composer
+curl -sS https://getcomposer.org/installer | php
+mv composer.phar /usr/local/bin/composer
+
+# use composer to install drush7 and the drush launcher
+cd /var/www
+composer require drush/drush:8.*
+wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
+chmod +x drush.phar
+mv drush.phar /usr/local/bin/drush
+
+# use vendor/bin/drush to download drupal
+cd /var/www
+vendor/bin/drush dl drupal-7
+
+# make drupal our webroot
+mv html html-stock
+ln -s drupal-7* html