]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Drush's site-install just works for 7.x+
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Jan 2013 13:36:37 +0000 (11:36 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Jan 2013 13:36:37 +0000 (11:36 -0200)
templates/drupal.sh.erb

index d10658ac3b3490a2d0aa0789676eaf50df3971d1..e3d9c25edce3e7d5c6c626a39181a5c9c3b87323 100644 (file)
@@ -381,12 +381,14 @@ EOF
     fi
   fi
 
-  (
-  echo "Installing drupal $series for $site using $profile profile..."
-  cd $BASE/drupal-$series/
-  drush site-install $profile --site-name="$name" --site-mail="$site_email" --locale=$locale \
-    --uri="$site" --sites-subdir="$site" --account-name="$admin" --account-mail="$admin_email"
-  )
+  if [ "$series" != "6" ]; then
+    (
+    echo "Installing drupal $series for $site using $profile profile..."
+    cd $BASE/drupal-$series/
+    drush site-install $profile --site-name="$name" --site-mail="$site_email" --locale=$locale \
+      --uri="$site" --sites-subdir="$site" --account-name="$admin" --account-mail="$admin_email"
+    )
+  fi
 
   # Fix permissions
   if grep -qe "^$site:" /etc/passwd; then
@@ -397,7 +399,11 @@ EOF
     chown www-data.www-data $SITES/$site/drupal/files
   fi
 
-  echo "Done. Please check your installation."
+  if [ "$series" == "6" ]; then
+    echo "Now please access http://$site.$domain/install.php to continue with the installation."
+  else
+    echo "Done. Please check your installation."
+  fi
 }
 
 # Main procedure