From ea156ff84c09a153a6172cf241e42df1ff49158f Mon Sep 17 00:00:00 2001
From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr>
Date: Thu, 20 May 2021 23:20:10 +0200
Subject: [PATCH] fix picture_path and tripal_banner_path in species template

---
 templates/gspecies_compose.yml.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/gspecies_compose.yml.j2 b/templates/gspecies_compose.yml.j2
index 408c93e..3b4bdbb 100644
--- a/templates/gspecies_compose.yml.j2
+++ b/templates/gspecies_compose.yml.j2
@@ -38,11 +38,11 @@ services:
             - ./docker_data/galaxy/:/export/:ro
             - ./src_data/:/project_data/:ro
             - ./src_data:/data:ro
-            {% if 'tripal_banner_path' is defined %}
+            {% if tripal_banner_path is defined %}
             - ./banner.png:/var/www/html/banner.png:ro
             {% endif %}
             #- /groups/XXX/:/groups/XXX/:ro  # We do this when we have symlinks in src_data pointing to /groups/XXX/...
-            {% if 'picture_path' is defined and 'picture_path' %}
+            {% if picture_path is defined %}
                 {% if 'png' in picture_path %}
             - ./species.png:/var/www/html/species.png:ro
                 {% endif %}
-- 
GitLab