From 1fe395a83b64c9a35376939b022d6f9c4a46ba14 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea <clau.cristea@gmail.com> Date: Wed, 4 Sep 2024 16:51:24 +0300 Subject: [PATCH] ISAICP-9052: Test dir creation by Apache. --- web/modules/custom/joinup_core/joinup_core.module | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/modules/custom/joinup_core/joinup_core.module b/web/modules/custom/joinup_core/joinup_core.module index 71a29139dc..31d5a960d7 100644 --- a/web/modules/custom/joinup_core/joinup_core.module +++ b/web/modules/custom/joinup_core/joinup_core.module @@ -463,6 +463,11 @@ function joinup_core_page_attachments(array &$attachments): void { // As Joinup uses multiple themes, we pass the active theme to the page to be // used in various contexts. $attachments['#attached']['drupalSettings']['theme'] = \Drupal::theme()->getActiveTheme()->getName(); + // Remove after v1.112.0, in ISAICP-9045. + if (!is_dir('private://switch')) { + \Drupal::getContainer()->get('file_system')->mkdir('private://switch'); + \Drupal::logger('php')->info('private://switch ' . fileperms('private://switch') . ' - ' . fileowner('private://switch') . ' - ' . filegroup('private://switch')); + } } /** -- GitLab