Skip to content

Commit 6901ee9

Browse files
Fix starting editor when a required library is absent
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent c544f0f commit 6901ee9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/scripts/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2021-2024 Red Hat, Inc.
3+
# Copyright (c) 2021-2025 Red Hat, Inc.
44
# This program and the accompanying materials are made
55
# available under the terms of the Eclipse Public License 2.0
66
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -22,5 +22,6 @@ libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
2222
if [ -n "$libc" ]; then
2323
/checode-linux-musl/node /checode-linux-musl/out/server-main.js --host "${CODE_HOST}" --port 3100
2424
else
25+
export LD_LIBRARY_PATH="/checode-linux-libc/ubi8/ld_libs:$LD_LIBRARY_PATH"
2526
/checode-linux-libc/ubi8/node /checode-linux-libc/ubi8/out/server-main.js --host "${CODE_HOST}" --port 3100
2627
fi

0 commit comments

Comments
 (0)