Hi every one,
I'm going to be maintaining a bunch of drupal sites. I'm trying to automate as much of maintenance as possible and one of the things I would like to do is update the database via a script, basically run update.php with the latest upgrades selected. The problem is that I can't just wget update.php and I didn't see any thing helpful in the scripts directory. Even worse is that google came up with Nil.
Any one have any ideas on how I could do that?
Thanks.
It might not be the exact solution you are looking for, but I have done similar things with the iMacro add on for Firefox.
https://addons.mozilla.org/en-US/firefox/addon/3863
That way you can create a macro to actually put the site in offline mode, then run update.php and then return it to online mode. I haven't actually used it for update.php, but have used it for a lot of other repetitive things I have to do in Drupal.
(fyi - it looks like a feature request is in for update.php handling in Drush, but it isn't yet committed)
Jamie Holly
Nabil Alsharif wrote:
Hi every one,
I'm going to be maintaining a bunch of drupal sites. I'm trying to automate as much of maintenance as possible and one of the things I would like to do is update the database via a script, basically run update.php with the latest upgrades selected. The problem is that I can't just wget update.php and I didn't see any thing helpful in the scripts directory. Even worse is that google came up with Nil.
Any one have any ideas on how I could do that?
Thanks.
Thanks for the Drush tip. http://acquia.com/blog/drupal-cli-utils looks promising but it is erroring out at the moment.
On Mon, 2009-02-23 at 10:52 -0500, Jamie Holly wrote:
It might not be the exact solution you are looking for, but I have done similar things with the iMacro add on for Firefox.
https://addons.mozilla.org/en-US/firefox/addon/3863
That way you can create a macro to actually put the site in offline mode, then run update.php and then return it to online mode. I haven't actually used it for update.php, but have used it for a lot of other repetitive things I have to do in Drupal.
(fyi - it looks like a feature request is in for update.php handling in Drush, but it isn't yet committed)
Jamie Holly
Nabil Alsharif wrote:
Hi every one,
I'm going to be maintaining a bunch of drupal sites. I'm trying to automate as much of maintenance as possible and one of the things I would like to do is update the database via a script, basically run update.php with the latest upgrades selected. The problem is that I can't just wget update.php and I didn't see any thing helpful in the scripts directory. Even worse is that google came up with Nil.
Any one have any ideas on how I could do that?
Thanks.
This is related to the earlier discussion. Unfortunately I could find a good a scriptable way to automate update.php so my new question is:
If I have a multi site setup, single codebase and multiple databases. When I upgrade a module in sites/all is it possible to have to database updates run for each database in one sweep assuming I run update.php by hand?