1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Add version in php pool name to avoid muliple pool with same name

This commit is contained in:
Josué Tille 2024-04-09 20:29:31 +02:00
parent 987f075e80
commit 4e2122479f
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -1001,13 +1001,18 @@ secure_log_date_format = %b %e
0 = Apps detected pools
</group>
<list>
0 = {% for php_pool_info in php_pools_infos.splitlines() %}{% if loop.index > 1 %}, {% endif %}{{ php_pool_info.split(',')[1] }}{% endfor %}
0 = {% for php_pool_info in php_pools_infos.splitlines() -%}
{%- if loop.index > 1 -%}, {%- endif -%}
{%- set phpversion = php_pool_info.split(',')[0] -%}
{%- set pool_name = php_pool_info.split(',')[1] -%}
{{- pool_name }}-{{ phpversion -}}
{%- endfor %}
</list>
<desc>
{%- for php_pool_info in php_pools_infos.splitlines() %}
{%- set phpversion = php_pool_info.split(',')[0] %}
{%- set pool_name = php_pool_info.split(',')[1] %}
{{ pool_name }} = http://localhost:{{ port_nginx_status }}/php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }}
{{ pool_name }}-{{ phpversion }} = http://localhost:{{ port_nginx_status }}/php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }}
{%- endfor %}
</desc>
<map>