From 091e457118fb2d14f1084c7a5e36617490d80722 Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Thu, 18 Feb 2021 23:59:57 +0100 Subject: [PATCH] Add loop for adminv alue and admin flag --- templates/pool.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/pool.j2 b/templates/pool.j2 index f89641c..159751d 100644 --- a/templates/pool.j2 +++ b/templates/pool.j2 @@ -83,3 +83,15 @@ php_admin_value[opcache.restrict_api] = "{{ item.dir }}" {% if item.openbasedir is defined %} php_admin_value[open_basedir] = "{{ item.openbasedir }}:/usr/share/php:/usr/share/php5:/tmp" {% endif %} + +{% if item.extra_admin_flag is defined %} +{% for admin_flag in item.extra_admin_flag %} +php_admin_flag[{{admin_flag.name}}] = "{{ admin_flag.value}}" +{% endfor %} +{% endif %} + +{% if item.extra_admin_value is defined %} +{% for admin_value in item.extra_admin_value %} +php_admin_value[{{admin_value.name}}] = "{{ admin_value.value}}" +{% endfor %} +{% endif %}