]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Checking for base at 'drupal make'
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Nov 2010 19:34:59 +0000 (17:34 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Nov 2010 19:34:59 +0000 (17:34 -0200)
templates/drupal.sh.erb

index b1412edf3a35f6737cf58d7be367b56532beb1b5..bf6cc6510820ca5a270d8ba8f6dbf46563e2bd15 100644 (file)
@@ -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