From 216a8e66d3d3b42ebfc4fb02c36403d260f53b09 Mon Sep 17 00:00:00 2001 From: "Sixia \"Leask\" Huang" Date: Thu, 18 Jan 2024 15:05:56 -0500 Subject: [PATCH] fix: tweak check-requirements for calling ldconfig (#202645) * tweak check-requirements for calling ldconfig * apply patch --- resources/server/bin/helpers/check-requirements-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh index b366a190abf..ac1840d61d8 100644 --- a/resources/server/bin/helpers/check-requirements-linux.sh +++ b/resources/server/bin/helpers/check-requirements-linux.sh @@ -32,7 +32,7 @@ elif [ -f /usr/lib/libstdc++.so.6 ]; then libstdcpp_path='/usr/lib/libstdc++.so.6' elif [ -f /sbin/ldconfig ]; then # Look up path - libstdcpp_paths=$(ldconfig -p | grep 'libstdc++.so.6') + libstdcpp_paths=$(/sbin/ldconfig -p | grep 'libstdc++.so.6') if [ "$(echo "$libstdcpp_paths" | wc -l)" -gt 1 ]; then libstdcpp_path=$(echo "$libstdcpp_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}') @@ -66,7 +66,7 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then libc_path='/usr/lib/libc.so.6' elif [ -f /sbin/ldconfig ]; then # Look up path - libc_paths=$(ldconfig -p | grep 'libc.so.6') + libc_paths=$(/sbin/ldconfig -p | grep 'libc.so.6') if [ "$(echo "$libc_paths" | wc -l)" -gt 1 ]; then libc_path=$(echo "$libc_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')