#!/bin/bash # # Deploy a fresh drupal tree. # if [ "$#" != "1" ]; then echo "Usage: `basename $0` " exit 1 fi NEW="$1" BASE="<%= $apache_www_folder %>" cd $BASE # Deploy a fresh drupal tree wget http://ftp.drupal.org/files/projects/drupal-$NEW.tar.gz tar zxvf drupal-$NEW.tar.gz && rm drupal-$NEW.tar.gz chown -R root.root drupal-$NEW/ cd drupal-$NEW && rm -rf sites