Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker/openshift/preflight/preflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ function environment_variable_isset(array $items) : bool {
'all.preflight.php',
];

if (is_dir('/var/www/html/public/sites/default/files/private')) {
preflight_failed('sites/default/files/private folder found.');
}

// Allow additional custom checks to be added.
// Create a 'all.preflight.php' file for checks that need to be run
// on all environments and '{env}.preflight.php' for environment-specific
Expand Down
2 changes: 1 addition & 1 deletion public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function drupal_get_env(string|array $variables) : mixed {

$settings['config_sync_directory'] = '../conf/cmi';
$settings['file_public_path'] = getenv('DRUPAL_FILES_PUBLIC') ?: 'sites/default/files';
$settings['file_private_path'] = getenv('DRUPAL_FILES_PRIVATE');
$settings['file_private_path'] = getenv('DRUPAL_FILES_PRIVATE') ?: '/private_files';
$settings['file_temp_path'] = getenv('DRUPAL_TMP_PATH') ?: '/tmp';

if ($reverse_proxy_address = getenv('DRUPAL_REVERSE_PROXY_ADDRESS')) {
Expand Down