function make_prepare_install

8.0.x make.utilities.inc make_prepare_install($build_path)
6.x make.utilities.inc make_prepare_install($build_path)
7.x make.utilities.inc make_prepare_install($build_path)
5.x make.utilities.inc make_prepare_install($build_path)
master make.utilities.inc make_prepare_install($build_path)

Prepare a Drupal installation, copying default.settings.php to settings.php.

1 call to make_prepare_install()
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.

File

commands/make/make.utilities.inc, line 368
General utility functions for Drush Make.

Code

function make_prepare_install($build_path) {
  $default = make_tmp() . '/__build__/sites/default';
  drush_copy_dir($default . DIRECTORY_SEPARATOR . 'default.settings.php', $default . DIRECTORY_SEPARATOR . 'settings.php', TRUE);
  drush_mkdir($default . '/files');
  chmod($default . DIRECTORY_SEPARATOR . 'settings.php', );
  chmod($default . DIRECTORY_SEPARATOR . 'files', );
}