I am looking for ways to add automation to setting up a site, and I use DRUSH a lot.
When I first setup a site, one of the first thiings that need to be done is to set the time zone.
is there a way to use DRUSH or perhaps a command line option, to set the time zone with out doing it manually?
I am just trying to create a way to setup a .sh file that I can just edit, execute and goto lunch...

Comments

donquixote’s picture

I'm looking for the same thing.
Maybe something generic to set system variables?

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

Hi,
I am just indiscriminately closing all support requests with no activity for more than 1 year.
If you consider this to still be a valid issue / support request, feel free to re-open.
BUT,
if you are re-opening this issue, please provide specific details on how this issue can move forward.

Thanks.

the_g_bomb’s picture

I don't think it would have been too difficult to mention the:
drush vset command (http://drush.ws/#variable-set)
something like:

drush vset site_default_country 'GB' -y
drush vset date_first_day 1 -y
drush vset date_api_use_iso8601 0 -y
drush vset date_default_timezone 'Europe/London' -y
drush vset configurable_timezones 0 -y
drush vset user_default_timezone 0 -y

these should work for UK timezone in D7