Skip to content

Commit

Permalink
chore(#5): disable settings file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 18, 2022
1 parent c4b2a21 commit a584986
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drupal/scripts/composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public static function createRequiredFiles(Event $event) {
}

// Prepare the settings file for installation
if (!$fs->exists($drupalRoot . '/sites/default/settings.php') && $fs->exists($drupalRoot . '/profiles/contrib/commerce_kickstart/assets/settings.php')) {
$fs->copy($drupalRoot . '/profiles/contrib/commerce_kickstart/assets/settings.php', $drupalRoot . '/sites/default/settings.php');
$fs->chmod($drupalRoot . '/sites/default/settings.php', 0666);
$event->getIO()->write("Created a sites/default/settings.php file with chmod 0666");
}
// if (!$fs->exists($drupalRoot . '/sites/default/settings.php') && $fs->exists($drupalRoot . '/profiles/contrib/commerce_kickstart/assets/settings.php')) {
// $fs->copy($drupalRoot . '/profiles/contrib/commerce_kickstart/assets/settings.php', $drupalRoot . '/sites/default/settings.php');
// $fs->chmod($drupalRoot . '/sites/default/settings.php', 0666);
// $event->getIO()->write("Created a sites/default/settings.php file with chmod 0666");
// }

// Create the files directory with chmod 0777
if (!$fs->exists($drupalRoot . '/sites/default/files')) {
Expand All @@ -51,7 +51,7 @@ public static function createRequiredFiles(Event $event) {
umask($oldmask);
$event->getIO()->write("Created a sites/default/files directory with chmod 0777");
}

// Mirror config splits from the profile to the project config directory.
$fs->mirror($drupalRoot . '/profiles/contrib/commerce_kickstart/config/splits', $composerRoot . '/config/splits');
$event->getIO()->write("Mirrored config splits from Commerce Kickstart into ../config/splits");
Expand Down

0 comments on commit a584986

Please sign in to comment.