Manage many configurations

This commit is contained in:
Emilien Mantel
2016-10-13 10:19:24 +02:00
parent 41a5575627
commit 60a368f3e1
7 changed files with 58 additions and 40 deletions

View File

@@ -1,9 +1,9 @@
{% extends "_base.j2" %}
{% macro phpv(version) %}
{% if version == 56 or version == "5.6" %}
{% if version == 56 or version == "56" or version == "5.6" %}
{{ nginx_upstream_php56 -}}
{% elif version == 70 or version == "7.0" %}
{% elif version == 70 or version == "70" or version == "7.0" %}
{{ nginx_upstream_php70 -}}
{% else %}
{# Hack... define another upstream #}