title: drupal issue with install profile and domain module?
body: <p>I had generated the make file with the contrib module domain.
  When we enable the domain module, we just want to append the following code to the settings.php file.</p>
  
  <pre><code>include_once DRUPAL_ROOT.'/profiles/my_profile/modules/contrib/domain/settings.inc';
  </code></pre>
  
  <p>When I try to install this profile, I get an error </p>
  
  <blockquote>
    <p>Fatal error: Undefined function domain_get_primary_table()</p>
  </blockquote>
  
  <p>this happens because when we install a profile the settings.php file overwrites the included settings.inc. So when we try to install the domain module it gives the above error and stops installation.
  Anyone have an idea how can we install the profile along with the domain module without this issue.</p>