From 7fd40e13e197ab5fd762d1f074c404088b74179b Mon Sep 17 00:00:00 2001
From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr>
Date: Mon, 17 May 2021 13:39:08 +0200
Subject: [PATCH] fix banner symlink condition

---
 gga_init.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gga_init.py b/gga_init.py
index 9a73c8d..1ae0ce4 100755
--- a/gga_init.py
+++ b/gga_init.py
@@ -67,6 +67,8 @@ class DeploySpeciesStack(speciesData.SpeciesData):
                 if not os.path.isfile(banner_dest_path) and not os.path.islink(banner_dest_path):
                     os.symlink(os.path.abspath(self.config[constants.CONF_TRIPAL_BANNER_PATH]), banner_dest_path)
                     logging.info("Custom banner added: symlink from %s" % self.config[constants.CONF_TRIPAL_BANNER_PATH])
+                else:
+                    logging.info("Banner already exists at %s. The banner defined in config is not added." % banner_dest_path)
             else:
                 logging.debug("Using default banner for Tripal pages because %s is not valid in 'config' file" % constants.CONF_TRIPAL_BANNER_PATH)
                 self.config.pop(constants.CONF_TRIPAL_BANNER_PATH, None)
-- 
GitLab