diff --git a/web/sites/default/settings.php b/web/sites/default/settings.php index a85cc129effcd569dc80e5488237bc1baef43295..303e9e1ad9f3426e83bb2ed2480020a7bc29d92d 100644 --- a/web/sites/default/settings.php +++ b/web/sites/default/settings.php @@ -19,10 +19,25 @@ /** * Place the config directory outside of the Drupal root. */ -$config_directories = array( - CONFIG_SYNC_DIRECTORY => $_ENV['HOME'] . '/files/private/config', -); - +if(!empty($_ENV['FILEMOUNT'])) { + error_log("Config sync dir: _ENV[FILEMOUNT] exists, using it."); + $config_directories = array( + CONFIG_SYNC_DIRECTORY => DRUPAL_ROOT . '/' . $_ENV['FILEMOUNT'] . '/private/config', + ); +} +else if (is_dir($_ENV['HOME'] . '/files/private/config')) { + error_log("Config sync dir: _ENV[HOME]/files/private/config exists, using this."); + $config_directories = array( + CONFIG_SYNC_DIRECTORY => $_ENV['HOME'] . '/files/private/config', + ); +} +else { + error_log("Config sync dir: fell through to default."); + $config_directories = array( + CONFIG_SYNC_DIRECTORY => DRUPAL_ROOT . '/sites/default/files/private/config', + ); +} +error_log("Config sync dir: " . $config_directories[CONFIG_SYNC_DIRECTORY]); /** * If there is a local settings file, then include it */