From 72f9430be4ddabc0ea3ae66244c375e111b6d0a2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 3 Oct 2020 13:29:59 +0200 Subject: [PATCH] fix syntax if custom option is an 'if' expression --- templates/etc/nginx/sites-available/vhost.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 6bfa6f4..5d0f263 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -40,7 +40,7 @@ server { {% if server.custom_options is defined and server.custom_options %} {% for inline_option in server.custom_options %} - {{ inline_option }}; + {{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }} {% endfor %} {% endif %}