File tree Expand file tree Collapse file tree
docroot/sites/default/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515/**
1616 * For custom installation
1717 */
18- $ config_directories [ ' sync ' ] = "../config/default " ;
18+ $ settings [ ' config_sync_directory ' ] = "../config/default " ;
1919
2020/**
2121 * Set content directory for default_content_deploy.
115115 }
116116 // Populate secure variables.
117117 $ config ['slack_invite.settings ' ]['token ' ] = getenv ('SLACK_TOKEN ' );
118+
119+ // Database credentials.
120+ if (file_exists ('/var/www/site-php ' )) {
121+ require '/var/www/site-php/drupalcz/drupalcz-settings.inc ' ;
122+ }
118123}
119124
120125// Load settings.
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33if [ ! -e docroot/sites/default/settings/local.settings.php ]; then
4- cp docroot/sites/default/settings/default.local.settings.php docroot/sites/default/settings/local.settings.php
5- sed -i " s/@@DB_NAME@@/drupal8/g" docroot/sites/default/settings/local.settings.php
6- sed -i " s/@@DB_USER@@/drupal8/g" docroot/sites/default/settings/local.settings.php
7- sed -i " s/@@DB_PASS@@/drupal8/g" docroot/sites/default/settings/local.settings.php
8- sed -i " s/@@DB_HOST@@/database/g" docroot/sites/default/settings/local.settings.php
4+ echo -e " <?php\n\n//This is for your customizations." > docroot/sites/default/settings/local.settings.php
95 echo Settings file was created.
106else
117 echo Settings file already exists. Skipping creation.
128fi
13-
You can’t perform that action at this time.
0 commit comments