From b16675ce865984f82bf503048977e5d937750cb3 Mon Sep 17 00:00:00 2001 From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr> Date: Thu, 20 May 2021 21:43:19 +0200 Subject: [PATCH] fix picture_path in template --- templates/gspecies_compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gspecies_compose.yml.j2 b/templates/gspecies_compose.yml.j2 index 1b1e8f8..b8c9e1b 100644 --- a/templates/gspecies_compose.yml.j2 +++ b/templates/gspecies_compose.yml.j2 @@ -42,7 +42,7 @@ services: - ./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 %} + {% if 'picture_path' is defined and 'picture_path' != '' %} {% if 'png' in picture_path %} - ./species.png:/var/www/html/species.png:ro {% endif %} -- GitLab