append settings.php during profile installation I would like to add lines to my settings.php during my custom installation. I'm using some $conf['...'] to match external content to my drupal and i would like not to do this by modifying directly the file.
During my custom install i want to use the external content to have a fully operational website after running my script.

Do you have an idea how i can do this ?

Thanks.
Checkout this post about Collecting and writing configuration settings to setting.php from an install profile.

It describes how a custom task (via hook_install_tasks_alter()) was injected into the installation profile to display a custom form and, upon submission, how drupal_rewrite_settings() can be used to inject the custom settings into settings.php.