Bitnami container images
Go to file
Andrew Lehman d15b696cb7 Properly bootstrap Drupal when using an existing database (#122)
* Add method for adding drupal db info to settings

This is just a copy of the drupal_set_database_ssl_settings minus
anything about ssl

* Add missing config options to settings file

Ensure we add the db connection, config dir and hash salt.  The last two
are hardcoded but we'll need to allow those to be user specified.

* Make config directory controllable by env variable

* Extract creation of config dir to function

* Make hash_salt value controllable by env variable

If not environment variable is set then the hash_salt is set to a random
value using drush

* Port fix to Drupal 8

* Remove debug cat command

* Change DRUPAL_CONF_DIR to DRUPAL_CONFIG_SYNC_DIR

* Create a default config sync dir if no value given

Follows same process as Drupal core by using the randomBytesBase64
utility function

* remove debug statements

* Remove DRUAL_CONFIG_SYNC_DIR default value

* Port new default value for config sync dir to d9

* Add DB SSL settings if specified

* Add new env var info to README

* Always clear Drupal cache

* Add top comment to drupal_create_config_directory

* Convert tabs to spaces

* Do not specify default parameter

* Add comments to creation of hash salt and config dir

* Use built in functions to generate config dir

Remove dependency on drush and the need to switch config to a temp value
by using the generate_random_string function

* Use built in function to generate hash salt

Remove dependency on drush by using build in generate_random_string
function

* Remove hanging if statement

* Handle empty

* Handle empty DRUPAL_CONFIG_SYNC_DIR var
2021-04-07 10:38:23 +02:00
bitnami/drupal Properly bootstrap Drupal when using an existing database (#122) 2021-04-07 10:38:23 +02:00