We have decided that along with the move of drush_extras back into drush core, we will be adding the provision install and update commands, which offer full support for install profiles and languages.

Here are the related files :
Drupal 5
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...

Drupal 6
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...

Drupal 7
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/p...

These files fully support the drush_logging and error handling API, making for very clean and very useful commands.

CommentFileSizeAuthor
#18 autoinstall_drupal.txt1.09 KBDavid_Rothstein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjaspan’s picture

subscribe

swentel’s picture

This will rock once this gets in .. subscribing so I can review patches later!

anarcat’s picture

I'm also go for this...

adrian’s picture

Committed the provision update commands to HEAD.

install will come later.

adrian’s picture

Status: Active » Needs work
rsvelko’s picture

what about modules and themes - are they handled in the install.inc

(I know of drush dl and drush enable (that might be combined/used here) - but dl does not check for dependancies I suspect while enable does )

adrian’s picture

this is for installing the entire site, using the install profile as the map of what modules to enable.

this is not for installing modules.

rsvelko’s picture

ok, the second part of the question is whether the install command is going to install modules and themes one day?

adrian’s picture

You are thinking of the 'dl' and 'enable' commands, and i believe they do. They even do translations.

The install command (at the moment) is a replacement for Drupal's install.php, and it fully supports install profiles and their related modules and themes.

adrian’s picture

Title: Port drupal update and install commands from provision » Port drupal install commands from provision
Priority: Critical » Normal

This is only scheduled for the next release after 2.0

moshe weitzman’s picture

Status: Needs work » Active
Issue tags: +3.0

OK, 2.0 is released. Lets tackle that pesky install command.

psynaptic’s picture

Ahh, this is great. I just posted in another thread but this look like where it's all going down.

Anything you need help with, just let me know.

joachim’s picture

I'm keen to see this get into drush.
Any way I can help beyond testing eventual patches?

SeanBannister’s picture

+1 Subscribe

Logi Khoo’s picture

For my case, i'll write a shell script for copying/chmod default.settings.php.

#!/bin/sh
# Standard Drupal Installation by Logi

cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout -r $2 -d $1 drupal
mkdir $1/sites/all/modules
mkdir $1/sites/all/themes
cp $1/sites/default/default.settings.php $1/sites/default/settings.php
chmod o+w $1/sites/default
chmod o+w $1/sites/default/settings.php
$ ./drinstall.sh $1 $2

An example of executing the script:

$ ./drinstall.sh DRUPAL-6--1-3 sitename.com

So... +1 for the install command!

meecect’s picture

subscribe

David_Rothstein’s picture

Note that for Drupal 7, I just posted a patch at #524728: Refactor install.php to allow Drupal to be installed from the command line which, if it were to get in, would make the Drush command relatively trivial, and easy to maintain.

David_Rothstein’s picture

FileSize
1.09 KB

Since #524728: Refactor install.php to allow Drupal to be installed from the command line has been in for a little while, Moshe asked me if there was a rough installation script that could be used as a starting point for Drush.

Attached is what I've been using to install Drupal 7 on my local machine. The stuff in capital letters gives an idea of the things that Drush would need to allow the end user to customize (although really any of it could be customizable).

This script would change a bit once the followup cleanup patch to #524728: Refactor install.php to allow Drupal to be installed from the command line actually gets committed (hopefully soon), but actually not too much.

moshe weitzman’s picture

Status: Active » Fixed

Commtted an initial version of this. Needs to smarten up in many ways (multisite, security, ...). Patches welcome.

Note that it requires a patch to core that is RTBC - #557542: Cache module_implements() . We also see 3 harmless, odd looking errors in drush logs which would be fixed by #325169: Move error/exception handler higher up in the bootstrap process

Status: Fixed » Closed (fixed)
Issue tags: -3.0

Automatically closed -- issue fixed for 2 weeks with no activity.