webapps/evoadmin-web: Replace evoadmin_multi_php (bool) by evoadmin_multiphp_versions (list) ** breaking **

Instead of having evoadmin_multi_php as a boolean, and outputing all 
versions possible PHP version in evoadmin, we now have 
evoadmin_multiphp_versions.

It's supposed to be a
This commit is contained in:
Ludovic Poujol 2019-11-14 17:15:38 +01:00
parent e6f2bbb331
commit 0f41638810
3 changed files with 8 additions and 5 deletions

View File

@ -10,7 +10,7 @@ evoadmin_scripts_dir: /usr/share/scripts/evoadmin
evoadmin_host: "evoadmin.{{ ansible_fqdn }}"
evoadmin_username: evoadmin
evoadmin_multi_php: False
evoadmin_multiphp_versions: []
evoadmin_enable_vhost: True
evoadmin_force_vhost: False

View File

@ -7,9 +7,11 @@ $localconf['superadmin'] = array();
$localconf['script_path'] = '{{ evoadmin_scripts_dir }}';
$localconf['cluster'] = FALSE;
// auth (sha256 hashs) / echo -n YourPass | sha256sum
$oriconf['logins'] = array();
//$oriconf['logins']['foo'] = 'd5d3c723fb82cb0078f399888af78204234535ec2ef3da56710fdd51f90d2477';
//$oriconf['logins']['bar'] = '7938c84d6e43d1659612a7ea7c1101ed02e52751bb64597a8c20ebaba8ba4303';
{% if evoadmin_multi_php %}
$localconf['php_versions'] = array(56, 70, 73);
{% if evoadmin_multiphp_versions != [] %}
$localconf['php_versions'] = array( {{ evoadmin_multiphp_versions.join(', ') | replace('php', '') }} );
{% endif %}

View File

@ -1,5 +1,6 @@
CONTACT_MAIL="{{ evoadmin_contact_email or general_alert_email | mandatory }}"
WWWBOUNCE_MAIL="{{ evoadmin_bounce_email or general_alert_email | mandatory }}"
{% if evoadmin_multi_php %}
PHP_VERSIONS=(56 70 73)
{% if evoadmin_multiphp_versions != [] %}
PHP_VERSIONS={{ evoadmin_multiphp_versions.join(' ') | replace('php', '') }} );
{% endif %}