8e79a3595c
- Implementation of libtofs on ini macro, pools_config and apache2 mod_php.conf + Introduction of tplroot on modified files + `{%-` consistency when possible
21 lines
604 B
Plaintext
21 lines
604 B
Plaintext
# Manages the php cli main ini file
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
{%- from tplroot ~ "/map.jinja" import php with context %}
|
|
{%- from tplroot ~ "/ini.jinja" import php_ini %}
|
|
|
|
{%- set settings = php.xcache.ini.defaults %}
|
|
{%- for key, value in php.xcache.ini.settings.items() %}
|
|
{%- if settings[key] is defined %}
|
|
{%- do settings[key].update(value) %}
|
|
{%- else %}
|
|
{%- do settings.update({key: value}) %}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
|
|
php_xcache_ini:
|
|
{{ php_ini(php.lookup.xcache.ini,
|
|
'php_xcache_ini',
|
|
php.xcache.ini.opts,
|
|
settings
|
|
) }}
|