]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Deal with a possibly empty drupal folder
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 12 May 2012 18:25:32 +0000 (15:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 12 May 2012 18:25:32 +0000 (15:25 -0300)
templates/drupal.sh.erb

index cd633c8ec34dd747b52dfee93050518480715c24..c6b9ca9547b7ee91a4afd47d0432bec2763191e2 100644 (file)
@@ -111,7 +111,9 @@ function drupal_deploy {
   fi
 
   # Make symlink if needed.
-  if [ ! -e "$BASE/drupal-$drupal_series" ]; then
+  if [ ! -e "$BASE/drupal-$drupal_series/CHANGELOG.txt" ]; then
+    # Deal with a possibly empty drupal folder
+    rmdir $BASE/drupal-$drupal_series &> /dev/null
     ( cd $BASE && ln -s drupal-$new drupal-$drupal_series )
   fi
 }