Drushrc.php creation

Events happening in the community are now at Drupal community events on www.drupal.org.
tusharkanta's picture

I want to know which provision module or code file creates the drushrc.php file while creating a new site in aegir system?

Thanks in advance.

Comments

provision_drupal_drush_exit()

mig5's picture

provision_drupal_drush_exit() is called if there were no errors. It sets a bunch of options and then executes provision_save_site_data() which in turn calls the drush_save_config() hook which is what writes the drushrc.php, and then sets the permissions on the file.

Bit of grepping around will show you where the code is. :)

If you are trying to save data to the drushrc.php you should probably be doing that by adding an extension to Provision that does drush_set_option and things like that, to save the options to the running context before the drushrc.php is written

Thanks for the response.

tusharkanta's picture

Thanks for the response. After I following your suggestions, I managed to find where it writes drushrc.php

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: