aboutsummaryrefslogtreecommitdiff
path: root/templates/drupal.sh.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-27 17:34:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-27 17:34:59 -0200
commit1282d25bd2ee86e3c07957b22db3e6d9d0820c88 (patch)
tree9f38bc88c1c37d51989536a022fe5d8bfe312193 /templates/drupal.sh.erb
parent3deb2f2bd3ceae2e9fc116a9d9b1d4919ff3bdba (diff)
downloadpuppet-drupal-1282d25bd2ee86e3c07957b22db3e6d9d0820c88.tar.gz
puppet-drupal-1282d25bd2ee86e3c07957b22db3e6d9d0820c88.tar.bz2
Checking for base at 'drupal make'
Diffstat (limited to 'templates/drupal.sh.erb')
-rw-r--r--templates/drupal.sh.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index b1412ed..bf6cc65 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -164,6 +164,10 @@ function drupal_make {
makefile="/usr/local/share/drupal/drupal$series.make"
if [ -e "$makefile" ]; then
+ if [ ! -e "$base" ]; then
+ echo "Please deploy drupal code at $base first"
+ exit 1
+ fi
drush dl drush_make
( cd $base && drush make -y --no-core $makefile )
else