Posted by tusharkanta on February 18, 2010 at 5:10pm
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.
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()
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.
Thanks for the response. After I following your suggestions, I managed to find where it writes drushrc.php