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)