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:
parent
987f075e80
commit
4e2122479f
1 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue