From 99153761badfc3ab7e441a5e9e36c83678437e8c Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Fri, 20 Nov 2020 13:14:29 +0100
Subject: [PATCH] Provide full path when TDB file is in /opt/lofar2.0/*

---
 tools/ConfigDb/update_ConfigDb.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/ConfigDb/update_ConfigDb.sh b/tools/ConfigDb/update_ConfigDb.sh
index 1c6587a0f..fc3dc051b 100755
--- a/tools/ConfigDb/update_ConfigDb.sh
+++ b/tools/ConfigDb/update_ConfigDb.sh
@@ -26,6 +26,11 @@ if [ ${1:0:10} != /hosthome/ -a ${1:0:20} != /opt/lofar2.0/tango/ -a ${1:0:14} !
 
         # The file can be accessed through /hosthome.  Modify the parameter.
         file=/hosthome${home_replaced}/$(basename ${file})
+    else
+        # The file is in one of the two:  /opt/lofar2.0/tango/ /opt/lofar2.0/
+        # Provide the full path since it is accessible from within the docker
+        # image because both directories are mounted.
+        file=${full_path}/$(basename ${file})
     fi
 fi
 
-- 
GitLab