aboutsummaryrefslogtreecommitdiff
path: root/templates/drupal-deploy.sh.erb
blob: e7b51aeff1601fcdc6593603925dbeb654240550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# Deploy a fresh drupal tree.
#

if [ "$#" != "1" ]; then
  echo "Usage: `basename $0` <version>"
  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