Skip to content

Commit 0f06c54

Browse files
committed
Merge branch 'develop' into composer
2 parents ff8533c + 20f6fe7 commit 0f06c54

3 files changed

Lines changed: 41 additions & 28 deletions

File tree

composer.lock

Lines changed: 34 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docroot/sites/default/settings/includes.settings.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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.
@@ -115,6 +115,11 @@
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.

scripts/create-settings.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#! /bin/sh
22

33
if [ ! -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.
106
else
117
echo Settings file already exists. Skipping creation.
128
fi
13-

0 commit comments

Comments
 (0)