Skip to content

Commit 216a8e6

Browse files
authored
fix: tweak check-requirements for calling ldconfig (microsoft#202645)
* tweak check-requirements for calling ldconfig * apply patch
1 parent 6334988 commit 216a8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/server/bin/helpers/check-requirements-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ elif [ -f /usr/lib/libstdc++.so.6 ]; then
3232
libstdcpp_path='/usr/lib/libstdc++.so.6'
3333
elif [ -f /sbin/ldconfig ]; then
3434
# Look up path
35-
libstdcpp_paths=$(ldconfig -p | grep 'libstdc++.so.6')
35+
libstdcpp_paths=$(/sbin/ldconfig -p | grep 'libstdc++.so.6')
3636

3737
if [ "$(echo "$libstdcpp_paths" | wc -l)" -gt 1 ]; then
3838
libstdcpp_path=$(echo "$libstdcpp_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')
@@ -66,7 +66,7 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
6666
libc_path='/usr/lib/libc.so.6'
6767
elif [ -f /sbin/ldconfig ]; then
6868
# Look up path
69-
libc_paths=$(ldconfig -p | grep 'libc.so.6')
69+
libc_paths=$(/sbin/ldconfig -p | grep 'libc.so.6')
7070

7171
if [ "$(echo "$libc_paths" | wc -l)" -gt 1 ]; then
7272
libc_path=$(echo "$libc_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')

0 commit comments

Comments
 (0)