[development] CLI update

Matt Chapman Matt at NinjitsuWeb.com
Mon Mar 2 19:23:47 UTC 2009


Nabil Alsharif wrote:
> I tried it on a D6 multi-site setup when it didn't work. 
>   

Here's the script I use for CLI updates on a D6 multi-site installation

http://ninjitsuweb.com/files/drupal-update.sh.txt


I think I got it from an Acquia blog post? Can't remember how much I 
tweaked it, if at all. To update all the sites at once, I call it from 
inside another script that basically looks like this:

for f in `ls drupal-root/sites/`
do
 echo "Updating: $f"
 php -d memory_limit=96M -f drupal-update.sh -- -s $f -r drupal-root/ -m -u &
 wait
done


To do a dry-run to check if updates are needed, replace `-m -u` with `-l 
-d`.


Best,

Matt



More information about the development mailing list