From 9ffc316b8beaa0dcb181c788eac7badd927d3053 Mon Sep 17 00:00:00 2001 From: Frederick Deny Date: Wed, 27 Mar 2024 20:30:04 +0000 Subject: [PATCH] switches having a symlink of the script to copying the script for multi host usage --- e4s_cl/cf/containers/barebones.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e4s_cl/cf/containers/barebones.py b/e4s_cl/cf/containers/barebones.py index d5ba0c14..f23a4366 100644 --- a/e4s_cl/cf/containers/barebones.py +++ b/e4s_cl/cf/containers/barebones.py @@ -125,7 +125,12 @@ def bind_file(self, file_to_bind = Path(path) file_basename = file_to_bind.name if dest is not None: - create_symlink(file_to_bind, Path(dest)) + dest = Path(dest) + if dest.name == 'barebones_script': + dest.write_text(file_to_bind.read_text()) + os.chmod(dest, 0o755) + else: + create_symlink(file_to_bind, Path(dest)) else: create_symlink(file_to_bind, Path(BAREBONES_LIBRARY_DIR) / file_basename)