Skip to content
Snippets Groups Projects
Commit c25be04b authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve jail dependent settings of Drupal's temp directory

parent 93ab8789
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ ini_set('session.cookie_lifetime', 2000000);
$conf['{{ item.protocol|default("https") }}'] = TRUE;
$conf['file_public_path'] = 'sites/{{ item.shortname|default("default") }}/files';
$conf['file_private_path'] = 'sites/{{ item.shortname|default("default") }}/private';
$conf['file_temporary_path'] = {% if drupal.jail is defined %}drupal_is_cli() ? '/tmp' : '{{ jailroot }}/{{ drupal.jail.name }}/tmp'{% else %}'/tmp'{% endif %};
$conf['file_temporary_path'] = {% if drupal.jail is defined %}is_dir('{{ jailroot }}/{{ drupal.jail.name }}/tmp') ? '{{ jailroot }}/{{ drupal.jail.name }}/tmp' : '/tmp'{% else %}'/tmp'{% endif %};
$conf['syslog_identity'] = 'drupal_{{ item.domain }}';
......
......@@ -52,7 +52,7 @@ $settings['trusted_host_patterns'] = array(
{% endfor %}
);
$config['system.file']['path']['temporary'] = '{% if drupal.jail is defined %}{{ jailroot }}/{{ drupal.jail.name }}{% endif %}/tmp';
$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 %};
{% for key in drupal_config_directories %}
$config_directories['{{ key }}'] = 'sites/{{ item.shortname|default("default") }}/files/{{ item.config|default("config") }}/{{ drupal_config_directories[key] }}';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment