[development] CLI update
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
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/`
echo "Updating: $f"
php -d memory_limit=96M -f drupal-update.sh -- -s $f -r drupal-root/ -m -u &
To do a dry-run to check if updates are needed, replace `-m -u` with `-l
More information about the development