From b669d6be5aa0ebbac0a994bd8668c6b305e58aed Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 13 Aug 2020 15:47:48 +0200 Subject: [PATCH] customer/schloesslekeller#3 Handle Drupal 9 as sub-status of d8 --- templates/d8_settings.php.jinja2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/d8_settings.php.jinja2 b/templates/d8_settings.php.jinja2 index 9647d7f..1757869 100644 --- a/templates/d8_settings.php.jinja2 +++ b/templates/d8_settings.php.jinja2 @@ -57,9 +57,13 @@ $settings['trusted_host_patterns'] = array( // As soon as Drupal 8.8+ will be used everywhere, the following line can be removed. $config['system.file']['path']['temporary'] = {% if drupal.jail is defined %}is_dir('{{ jailroot }}/{{ drupal.jail.name }}/tmp') ? '{{ jailroot }}/{{ drupal.jail.name }}/tmp' : '/tmp'{% else %}'/tmp'{% endif %}; +{% if drupal.isversion9|default(no) %} +$settings['config_sync_directory'] = 'sites/{{ item.shortname|default("default") }}/files/{{ item.config|default("config") }}/sync'; +{% else %} {% for key in drupal_config_directories %} $config_directories['{{ key }}'] = 'sites/{{ item.shortname|default("default") }}/files/{{ item.config|default("config") }}/{{ drupal_config_directories[key] }}'; {% endfor %} +{% endif %} {% for line in item.extra_settings|default([]) %} {{ line }} -- GitLab