This is one of those situations where I feel like I've been walking around with toilet paper hanging off the leg of my pants but nobody has the heart to tell me.
This evening I decided to, lo and behold, update my personal sites. This is nothing to take lightly. I may strongly recommend that sites be updated with security releases as soon as possible to clients, co-workers and bosses, but let's be honest here. Many a developer have put their own personal sites at the bottom of their never ending to-do lists as I have, because who has the time?
My Drupal 7 multisite consists of a variety of somewhat random websites, of which I will avoid sharing at this moment. Nevertheless, it was in need of an update-- desperately and I have grown tired of the warning at the top of the page every time I log into it.
Here I go, cd'ing happily into my multisite's directory and type drush. Woo hoo! I actually installed drush once upon a time-- I'm a happy camper. Next up: drush pm-upgrade. Oops. I'm told, "The drush command 'pm-upgrade' could not be found."
This reminds me that every. single. time I create a symlink I get the syntax backwards. And every. single. time. I try to update core or modules of a Drupal site I replace pm-update with pm-upgrade. This reminds me of the saying, "Practice makes perfect," when in reality it should be, "Perfect practice makes perfect."
After typing the proper command (which is pm-update if you were skimming), I'm prompted to hit y or n a few times and away the update churns away giving me a lovely status I completely ignore, only for me to log into one of the multisites and my heart sinks. It wasn't updated at all!
Oh right, the whole multisite thing. It only hits the default site by... well, default. This is where, after all my long winded ranting, comes in this handy dandy command which I was forced to Google in hopes such a thing existed.
drush @sites pm-update
Ooooh yeah, we're talking now. You can @sites quite a few things which makes managing a Drupal multisite with drush a much more pleasant evening.
Get to those updates!
Recent Comments